Code Review
/
yardstick.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d45d6aa
)
set log file to store debug info
75/28575/1
author
rexlee8776
<limingjiang@huawei.com>
Tue, 14 Feb 2017 03:13:56 +0000
(
03:13
+0000)
committer
rexlee8776
<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
patch
|
blob
|
history
diff --git
a/yardstick/__init__.py
b/yardstick/__init__.py
index
fbbc101
..
1ad6eb0
100644
(file)
--- 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)