From d845d9e29f1ca0c016258c87e31b7bab0f9cb499 Mon Sep 17 00:00:00 2001 From: Nicolas Simonds Date: Thu, 18 Jan 2024 10:15:27 -0800 Subject: [PATCH] fix: enable debug output via `debug: true` in the config file Re-initialize the logger after the config file is loaded, to pick up any new values. Fixes: Issue #114 --- cmd/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index 0f65800..812de94 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -135,6 +135,9 @@ func initConfig(cmd *cobra.Command, args []string) { os.Exit(1) } + // The value for `debug` might have changed; re-initialize the logger + initLogger() + repos = repositories.New( appConfig, logger,