From a247317ffe421bcee990fe823f20f2db46b3a519 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Sat, 9 Oct 2021 11:12:03 -0500 Subject: [PATCH] Added verbosity level 4+ to include method traces --- cmd/root.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) }