ansible: Move setLevel() bits together.

This commit is contained in:
David Wilson 2018-03-30 14:42:54 +05:45
parent 6958b8ff09
commit 9067a7b173
1 changed files with 2 additions and 2 deletions

View File

@ -71,12 +71,12 @@ def setup():
logging.getLogger('ansible_mitogen').handlers = [Handler(display.vvv)] logging.getLogger('ansible_mitogen').handlers = [Handler(display.vvv)]
mitogen.core.LOG.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: if display.verbosity > 2:
logging.getLogger('ansible_mitogen').setLevel(logging.DEBUG) logging.getLogger('ansible_mitogen').setLevel(logging.DEBUG)
mitogen.core.LOG.setLevel(logging.DEBUG) mitogen.core.LOG.setLevel(logging.DEBUG)
mitogen.core.IOLOG.handlers = [Handler(display.vvvv)]
if display.verbosity > 3: if display.verbosity > 3:
mitogen.core.IOLOG.setLevel(logging.DEBUG) mitogen.core.IOLOG.setLevel(logging.DEBUG)
mitogen.core.IOLOG.propagate = False