diff --git a/cmd/root.go b/cmd/root.go index e27995e..0f0a428 100644 --- a/cmd/root.go +++ b/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) }