aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/__init__.py
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2017-09-13 08:29:08 +0000
committerrexlee8776 <limingjiang@huawei.com>2017-09-14 01:32:53 +0000
commit2ad9a9b27a0eaf6a1e256727caf14106da07c626 (patch)
treea3c069bef89596368b48f184739e4edfdb979b52 /yardstick/__init__.py
parentdc4c82cda3362f1a1fa04340103846c4aa655ec5 (diff)
improve logging, clear using print
Change-Id: I744353f631cf1771d75f750543e8612f81be71ee Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'yardstick/__init__.py')
-rw-r--r--yardstick/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/yardstick/__init__.py b/yardstick/__init__.py
index c1010d98c..b673e7c4a 100644
--- a/yardstick/__init__.py
+++ b/yardstick/__init__.py
@@ -16,9 +16,7 @@ from yardstick.common import utils as yardstick_utils
yardstick_utils.makedirs(constants.LOG_DIR)
LOG_FILE = os.path.join(constants.LOG_DIR, 'yardstick.log')
-LOG_FORMATTER = ('%(asctime)s '
- '%(name)s %(filename)s:%(lineno)d '
- '%(levelname)s %(message)s')
+LOG_FORMATTER = '%(asctime)s [%(levelname)s] %(name)s %(filename)s:%(lineno)d %(message)s'
_LOG_FORMATTER = logging.Formatter(LOG_FORMATTER)
_LOG_STREAM_HDLR = logging.StreamHandler()