MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / WithError

Function WithError

utils/log/logwrapper.go:237–239  ·  view source on GitHub ↗

WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.

(err error)

Source from the content-addressed store, hash-verified

235
236// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
237func WithError(err error) *Entry {
238 return WithField(logrus.ErrorKey, err)
239}
240
241// WithField creates an entry from the standard logger and adds a field to
242// it. If you want multiple fields, use `WithFields`.

Callers 15

storeFunction · 0.92
processBlocksMethod · 0.92
addTxMethod · 0.92
processTxsMethod · 0.92
mainCycleMethod · 0.92
blockingFetchBlockMethod · 0.92
transferAccountTokenMethod · 0.92
isProviderReqMatchFunction · 0.92
applyMethod · 0.92

Calls 1

WithFieldFunction · 0.85

Tested by 4

TestWithFieldFunction · 0.68
TestFatalLogFunction · 0.68