summaryrefslogtreecommitdiff
path: root/bin
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2017-07-20 17:58:54 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2017-07-20 17:58:54 +0200
commite61c7bc2a13b13d9fbb9d63071c08dc6fcb20476 (patch)
tree2a1cffba6bd8b4e98cc2517211925d1e5ac6a352 /bin
parentf078d2abadc25d78f266a8ce6558485576d5e9d9 (diff)
pm_test: Log everything on stdout
Red output while running the test from checkbox is so scary...
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pm_test4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pm_test b/bin/pm_test
index 5fa69235..ce50a515 100755
--- a/bin/pm_test
+++ b/bin/pm_test
@@ -711,9 +711,9 @@ class LoggingConfiguration(object):
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
- # Log to sys.stderr using log level passed through command line
+ # Log to sys.stdout using log level passed through command line
if log_level != logging.NOTSET:
- log_handler = logging.StreamHandler()
+ log_handler = logging.StreamHandler(sys.stdout)
formatter = logging.Formatter('%(levelname)-8s %(message)s')
log_handler.setFormatter(formatter)
log_handler.setLevel(log_level)