diff --git a/ansible_mitogen/logging.py b/ansible_mitogen/logging.py index 3360051b..ce4ea127 100644 --- a/ansible_mitogen/logging.py +++ b/ansible_mitogen/logging.py @@ -71,12 +71,12 @@ def setup(): logging.getLogger('ansible_mitogen').handlers = [Handler(display.vvv)] mitogen.core.LOG.handlers = [Handler(display.vvv)] + mitogen.core.IOLOG.handlers = [Handler(display.vvvv)] + mitogen.core.IOLOG.propagate = False if display.verbosity > 2: logging.getLogger('ansible_mitogen').setLevel(logging.DEBUG) mitogen.core.LOG.setLevel(logging.DEBUG) - mitogen.core.IOLOG.handlers = [Handler(display.vvvv)] if display.verbosity > 3: mitogen.core.IOLOG.setLevel(logging.DEBUG) - mitogen.core.IOLOG.propagate = False