Set the debug mode with no assumptions on the previous state
@@ -71,9 +71,9 @@ def configure(debug=None, verbose=None, quiet=None):
del logger.handlers[1:] # everything except the default NullHandler
# Prevent the low-level logging unless in the debug verbosity mode. Keep only the operator's messages.
- if not debug:
- logging.getLogger('asyncio').propagate = False
- logging.getLogger('kubernetes').propagate = False
+ logging.getLogger('urllib3').propagate = debug
+ logging.getLogger('asyncio').propagate = debug
+ logging.getLogger('kubernetes').propagate = debug
loop = asyncio.get_event_loop()
loop.set_debug(debug)
