Skip to content

Commit 6180ea8

Browse files
authored
Use CallerFileHandler (#884)
1 parent f0a496f commit 6180ea8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cmd/sebak/cmd/run.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,7 @@ func parseFlagsNode() {
537537
}
538538
}
539539

540-
if logLevel == logging.LvlDebug { // only debug produces `caller` data
541-
logHandler = logging.CallerFileHandler(logHandler)
542-
}
540+
logHandler = logging.CallerFileHandler(logHandler)
543541
logHandler = logging.LvlFilterHandler(logLevel, logHandler)
544542
log.SetHandler(logHandler)
545543

0 commit comments

Comments
 (0)