Skip to content

Commit

Permalink
Update log level in config auto reload
Browse files Browse the repository at this point in the history
Signed-off-by: Nicko Guyer <[email protected]>
  • Loading branch information
nguyer committed Nov 9, 2023
1 parent 951e655 commit 9d616d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/namespace/configreload.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func (nm *namespaceManager) configFileChanged() {
}

func (nm *namespaceManager) configReloaded(ctx context.Context) {
// Always make sure log level is up to date
log.SetLevel(config.GetString(config.LogLevel))

// Get Viper to dump the whole new config, with everything resolved across env vars
// and the config file etc.
Expand Down

0 comments on commit 9d616d5

Please sign in to comment.