From a9bf28af4dfe8674e5eacce5c8cfbd88d65d0d02 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 22 Nov 2013 12:44:49 -0600 Subject: [PATCH] Allow the overall log level to be dynamically set. The code was previously only changing the logging level if it wasn't the default which is accurate for setting the log level once at startup time, but it needs to set it unconditionally to allow dynamic updates. --- config.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config.go b/config.go index dd0a9212..acd72c70 100644 --- a/config.go +++ b/config.go @@ -134,10 +134,8 @@ func parseAndSetDebugLevels(debugLevel string) error { return fmt.Errorf(str, debugLevel) } - // Change the logging level for all subsystems if needed. - if debugLevel != defaultLogLevel { - setLogLevels(debugLevel) - } + // Change the logging level for all subsystems. + setLogLevels(debugLevel) return nil }