ansible: Move setLevel() bits together.
This commit is contained in:
parent
6958b8ff09
commit
9067a7b173
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue