log: output caller on debug, use stdout as default

This commit is contained in:
2024-07-08 00:39:27 +02:00
parent 050a479df7
commit cde06f4f00
3 changed files with 18 additions and 14 deletions

View File

@ -289,6 +289,7 @@ func SubCommandBefore(c *cli.Context) error {
if Debug {
log.SetLevel(log.DebugLevel)
log.SetOutput(os.Stderr)
log.SetReportCaller(true)
}
return nil