diff options
author | Rex Lee <limingjiang@huawei.com> | 2017-02-16 02:39:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-02-16 02:39:54 +0000 |
commit | 0c5e1909e7752422a3964d3ce47559dea60fe61c (patch) | |
tree | edc478f674d2e9b2ecb89d1ad542a9326569f2e9 | |
parent | f970237c4f23ce6dd0a7dfd6e7fb2406fd442127 (diff) | |
parent | f85c283dd21f9033cc97806bd914b05a585d767c (diff) |
Merge "set log file to store debug info"
-rw-r--r-- | yardstick/__init__.py | 2 |
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) |