MCPcopy
hub / github.com/netdata/netdata / newDepthTestLogger

Function newDepthTestLogger

src/go/logger/handler_test.go:54–63  ·  view source on GitHub ↗
(isTerminal bool)

Source from the content-addressed store, hash-verified

52}
53
54func newDepthTestLogger(isTerminal bool) (*Logger, *pcCaptureHandler) {
55 h := &pcCaptureHandler{}
56 var sh slog.Handler = h
57 if isTerminal {
58 sh = withTerminalCallDepth(4, sh)
59 } else {
60 sh = withCallDepth(4, sh)
61 }
62 return &Logger{sl: slog.New(sh), rl: newRateLimiter()}, h
63}
64
65//go:noinline
66func emitWhenInfo(l *Logger) {

Calls 4

withTerminalCallDepthFunction · 0.85
withCallDepthFunction · 0.85
newRateLimiterFunction · 0.85
NewMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…