diff --git a/log/root.go b/log/root.go index 0682316389..486c54861f 100644 --- a/log/root.go +++ b/log/root.go @@ -60,7 +60,8 @@ func Crit(msg string, ctx ...interface{}) { os.Exit(1) } -// Output is a convenient alias for write +// Output is a convenient alias for write, allowing for the modification of +// the skip step (number of stack frames to skip) func Output(msg string, lvl Lvl, skip int, ctx ...interface{}) { - root.write(msg, lvl, ctx, skip) + root.write(msg, lvl, ctx, skip+skipLevel) }