-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Description
The logr documentation on WithCallDepth
and CallDepthLogSink
interface both say:
Successive calls to this are additive.
However, this implementation replaces the current depth
instead of adding:
Lines 213 to 220 in d198d3e
// WithCallDepth implements the optional WithCallDepth to offset the call stack | |
// when reporting caller. | |
func (l *logrusr) WithCallDepth(depth int) logr.LogSink { | |
newLogger := l.copyLogger() | |
newLogger.depth = depth | |
return newLogger | |
} |
bombsimon
Metadata
Metadata
Assignees
Labels
No labels