MCPcopy
hub / github.com/git-lfs/git-lfs / LogHTTPStats

Method LogHTTPStats

lfshttp/stats.go:38–41  ·  view source on GitHub ↗
(w io.WriteCloser)

Source from the content-addressed store, hash-verified

36const transferKey = statsContextKey("transfer")
37
38func (c *Client) LogHTTPStats(w io.WriteCloser) {
39 fmt.Fprintf(w, "concurrent=%d time=%d version=%s\n", c.ConcurrentTransfers, time.Now().Unix(), UserAgent)
40 c.httpLogger = newSyncLogger(w)
41}
42
43// LogStats is intended to be called after all HTTP operations for the
44// command have finished. It dumps k/v logs, one line per httpTransfer into

Callers 2

TestStatsWithKeyFunction · 0.95
TestStatsWithoutKeyFunction · 0.95

Calls 1

newSyncLoggerFunction · 0.85

Tested by 2

TestStatsWithKeyFunction · 0.76
TestStatsWithoutKeyFunction · 0.76