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.
This commit is contained in:
Dave Collins 2013-11-22 12:44:49 -06:00
parent ef47455b05
commit a9bf28af4d

View File

@ -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
}