aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2017-02-14 03:13:56 +0000
committerrexlee8776 <limingjiang@huawei.com>2017-02-14 03:17:46 +0000
commitf85c283dd21f9033cc97806bd914b05a585d767c (patch)
tree3e5b1a6e2605fe9005aee766f3fade7e01b85d01
parentd45d6aacdd769f07bfc2bad92be57a1c2ccf5d1f (diff)
set log file to store debug info
so the debug info can be pushed into artifacts JIRA: YARDSTICK-507 Change-Id: I35f50e69adc0125f6136aab3ca0e35e2d9500112 Signed-off-by: rexlee8776 <limingjiang@huawei.com>
-rw-r--r--yardstick/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yardstick/__init__.py b/yardstick/__init__.py
index fbbc101a9..1ad6eb0b1 100644
--- a/yardstick/__init__.py
+++ b/yardstick/__init__.py
@@ -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)