From 9067a7b173b02e5482795138b60e158ec93524fa Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 30 Mar 2018 14:42:54 +0545 Subject: [PATCH] ansible: Move setLevel() bits together. --- ansible_mitogen/logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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