Browse Source

Added verbosity level 4+ to include method traces

master
Drew Short 3 years ago
parent
commit
a247317ffe
  1. 6
      cmd/root.go

6
cmd/root.go

@ -126,8 +126,12 @@ func initLogging() {
log.SetLevel(log.InfoLevel)
case verbosity == 2:
log.SetLevel(log.DebugLevel)
case verbosity >= 3:
case verbosity == 3:
log.SetLevel(log.TraceLevel)
case verbosity > 3:
log.SetLevel(log.TraceLevel)
// Add overhead to include the caller that sourced the error
log.SetReportCaller(true)
default:
log.SetLevel(log.ErrorLevel)
}

Loading…
Cancel
Save