From: rexlee8776 Date: Tue, 14 Feb 2017 03:13:56 +0000 (+0000) Subject: set log file to store debug info X-Git-Tag: danube.1.0~79^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=f85c283dd21f9033cc97806bd914b05a585d767c;p=yardstick.git 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 --- 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)