From dd419c94b6108ffb3aa2a2ff94d7c7537d2e7fdb Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Tue, 22 Aug 2023 09:24:41 +0200 Subject: [PATCH] Fix off-by-one error in otellogrus initialisiation See https://go.dev/play/p/7jruiqhFuw3 --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 2ed9895f..bd627e50 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -300,7 +300,7 @@ func init() { } log.AddHook(otellogrus.NewHook(otellogrus.WithLevels( - log.AllLevels[:log.GetLevel()]..., + log.AllLevels[:log.GetLevel()+1]..., ))) } // shut down tracing at the end of the process