Fix log calldepth

This commit is contained in:
Joel Speed
2020-11-15 18:52:59 +00:00
parent c377466411
commit 3a4660414a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ func (l *Logger) Output(lvl Level, calldepth int, message string) {
if !l.stdEnabled {
return
}
msg := l.formatLogMessage(calldepth, message)
msg := l.formatLogMessage(calldepth+1, message)
var err error
switch lvl {