1
1
mirror of https://github.com/walles/moar.git synced 2024-11-22 21:50:43 +03:00

Tune log levels

Improves on #213.

Before this change "log.Info()" resulted in a crash report on exit.

With this change in place log.Warn() is required for that.
This commit is contained in:
Johan Walles 2024-06-23 12:20:03 +02:00
parent d911e542b8
commit 2012110efa

View File

@ -610,7 +610,7 @@ func pagerFromArgs(
return nil, nil, chroma.Style{}, nil, nil
}
log.SetLevel(log.InfoLevel)
log.SetLevel(log.WarnLevel)
if *trace {
log.SetLevel(log.TraceLevel)
} else if *debug {