Skip to content

Commit

Permalink
fix: enable debug output via debug: true in the config file
Browse files Browse the repository at this point in the history
Re-initialize the logger after the config file is loaded, to pick
up any new values.

Fixes: Issue #114
  • Loading branch information
nisimond authored and retr0h committed Jan 19, 2024
1 parent 8ca0774 commit d845d9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d845d9e

Please sign in to comment.