summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-02-16 02:39:54 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-16 02:39:54 +0000
commit0c5e1909e7752422a3964d3ce47559dea60fe61c (patch)
treeedc478f674d2e9b2ecb89d1ad542a9326569f2e9
parentf970237c4f23ce6dd0a7dfd6e7fb2406fd442127 (diff)
parentf85c283dd21f9033cc97806bd914b05a585d767c (diff)
Merge "set log file to store debug info"
-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)