The result is that the list of root logging handlers contains duplicate entries. Each line is thus logged twice.
Since the config can be loaded lazily, one might remove the explicit call in __main__.py. However, my reasoning for this approach was that resetting the logger handlers during initialization makes sense anyway.
This patch clears the root logging handlers when initializing the logger.
This might be considered a quickfix. The root problem is that the configuration might be loaded twice when starting up:
__main__.py
callsconfig.update_configuration
explicitly.The result is that the list of root logging handlers contains duplicate entries. Each line is thus logged twice.
Since the config can be loaded lazily, one might remove the explicit call in
__main__.py
. However, my reasoning for this approach was that resetting the logger handlers during initialization makes sense anyway.