From 9d616d5e03d0f8494a2d125aa445ec8cf34b5d09 Mon Sep 17 00:00:00 2001 From: Nicko Guyer Date: Thu, 9 Nov 2023 08:44:40 -0500 Subject: [PATCH] Update log level in config auto reload Signed-off-by: Nicko Guyer --- internal/namespace/configreload.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/namespace/configreload.go b/internal/namespace/configreload.go index 486c111eca..1556fb2f66 100644 --- a/internal/namespace/configreload.go +++ b/internal/namespace/configreload.go @@ -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.