MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / ErrorWithCallDepth

Function ErrorWithCallDepth

log/log.go:74–77  ·  view source on GitHub ↗

ErrorWithCallDepth prints err into error log using the given callDepth.

(err error, callDepth int)

Source from the content-addressed store, hash-verified

72
73// ErrorWithCallDepth prints err into error log using the given callDepth.
74func ErrorWithCallDepth(err error, callDepth int) {
75 s := err.Error()
76 errorLogger.Output(outputCallDepth+callDepth, mask(s)) //nolint
77}
78
79// Fatalf prints fatal message according to a format and exits program
80func Fatalf(format string, args ...interface{}) {

Callers 1

respondWithFunction · 0.92

Calls 2

maskFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected