MCPcopy Create free account
hub / github.com/chain/Core / logNetworkError

Function logNetworkError

core/fetch/fetch.go:219–225  ·  view source on GitHub ↗
(ctx context.Context, err error)

Source from the content-addressed store, hash-verified

217}
218
219func logNetworkError(ctx context.Context, err error) {
220 if nerr, ok := err.(net.Error); ok && nerr.Timeout() {
221 log.Printf(ctx, "%s", err.Error())
222 } else {
223 log.Error(ctx, err)
224 }
225}

Callers 3

FetchFunction · 0.85
updateGeneratorHeightFunction · 0.85
BootstrapSnapshotFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected