The existing code has the following (rather useful) block that is executed during initialization:
if debug = True:
turn_debug_logging_on()
else:
turn_debug_logging_off()
Turning debug logging on is useful, but not turning it on shouldn't mean that it be turned off.
For example, I use this component in a smarthome platform, and it has a means to configure logging of it's components, libraries, etc. in a single log file. The existing code overrules this behaviour.
Here, I am proposing:
if debug = True:
turn_debug_logging_on()
If debug is not true, then the debugging may still occur according to the expected behavior of logger
The existing code has the following (rather useful) block that is executed during initialization:
Turning debug logging on is useful, but not turning it on shouldn't mean that it be turned off.
For example, I use this component in a smarthome platform, and it has a means to configure logging of it's components, libraries, etc. in a single log file. The existing code overrules this behaviour.
Here, I am proposing:
If
debug
is nottrue
, then the debugging may still occur according to the expected behavior of logger