mirror of
https://github.com/btcsuite/btcd.git
synced 2025-01-18 21:32:30 +01:00
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:
parent
ef47455b05
commit
a9bf28af4d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user