From 59dab72e290abcf24911924a02b89b9f86acc8dc Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 8 Mar 2018 18:21:40 +0545 Subject: [PATCH] ansible: log ansible_mitogen.* to -v too. --- ansible_mitogen/logging.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible_mitogen/logging.py b/ansible_mitogen/logging.py index 547d5e70..3f41a2dd 100644 --- a/ansible_mitogen/logging.py +++ b/ansible_mitogen/logging.py @@ -69,6 +69,9 @@ def setup(): """ display = find_display() + logging.getLogger('ansible_mitogen').handlers = [Handler(display.v)] + logging.getLogger('ansible_mitogen').setLevel(logging.DEBUG) + mitogen.core.LOG.handlers = [Handler(display.v)] mitogen.core.LOG.setLevel(logging.DEBUG)