diff options
author | rexlee8776 <limingjiang@huawei.com> | 2017-09-13 08:29:08 +0000 |
---|---|---|
committer | rexlee8776 <limingjiang@huawei.com> | 2017-09-14 01:32:53 +0000 |
commit | 2ad9a9b27a0eaf6a1e256727caf14106da07c626 (patch) | |
tree | a3c069bef89596368b48f184739e4edfdb979b52 /yardstick/cmd | |
parent | dc4c82cda3362f1a1fa04340103846c4aa655ec5 (diff) |
improve logging, clear using print
Change-Id: I744353f631cf1771d75f750543e8612f81be71ee
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'yardstick/cmd')
-rw-r--r-- | yardstick/cmd/commands/task.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yardstick/cmd/commands/task.py b/yardstick/cmd/commands/task.py index bd5447836..e2e8bf67d 100644 --- a/yardstick/cmd/commands/task.py +++ b/yardstick/cmd/commands/task.py @@ -51,7 +51,7 @@ class TaskCommands(object): # pragma: no cover self.output_file = param.output_file result = {} - + LOG.info('Task START') try: result = Task().start(param, **kwargs) except Exception as e: @@ -59,9 +59,9 @@ class TaskCommands(object): # pragma: no cover LOG.exception("") if result.get('result', {}).get('criteria') == 'PASS': - LOG.info('Task Success') + LOG.info('Task SUCCESS') else: - LOG.info('Task Failed') + LOG.info('Task FAILED') raise RuntimeError('Task Failed') def _write_error_data(self, error): |