set log file to store debug info 75/28575/1
authorrexlee8776 <limingjiang@huawei.com>
Tue, 14 Feb 2017 03:13:56 +0000 (03:13 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Tue, 14 Feb 2017 03:17:46 +0000 (03:17 +0000)
so the debug info can be pushed into artifacts

JIRA: YARDSTICK-507

Change-Id: I35f50e69adc0125f6136aab3ca0e35e2d9500112
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
yardstick/__init__.py

index fbbc101..1ad6eb0 100644 (file)
@@ -39,6 +39,8 @@ def _init_logging():
 
     # don't append to log file, clobber
     _LOG_FILE_HDLR.setFormatter(_LOG_FORMATTER)
+    # set log file to store debug info
+    _LOG_FILE_HDLR.setLevel(logging.DEBUG)
 
     del logging.root.handlers[:]
     logging.root.addHandler(_LOG_STREAM_HDLR)