From 15d8996b48893b5b477eafd72c3da4e208152d3a Mon Sep 17 00:00:00 2001 From: "Greg T. Wallace" Date: Sat, 3 Feb 2024 14:05:21 -0500 Subject: [PATCH] fix: only debug logging when specified --- pkg/app/app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/app/app.go b/pkg/app/app.go index 3a27080..84252e7 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -45,7 +45,9 @@ func Start(args []string) { err := app.getConfig(args) // if debug logging, make real debug logger - app.debugLogger = log.New(os.Stdout, "debug: ", 0) + if app.config.debugLogging != nil && *app.config.debugLogging { + app.debugLogger = log.New(os.Stdout, "debug: ", 0) + } // deal with config err (after logger re-init) if err != nil {