summaryrefslogtreecommitdiffstats
path: root/dovetail/report.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-09-25 04:44:38 -0400
committerxudan <xudan16@huawei.com>2017-09-26 03:11:58 -0400
commit98ff39a0bb75e2ae07b4af77ddb127ffaeb4ce5b (patch)
treecbc38d97d8a4ac28551c92f05b4f8e7aa8f94ea8 /dovetail/report.py
parent6f47c82d4b6f830863ff1330163d869baa6c7eec (diff)
Make Yardstick log level can be set by CLI
1. Currently, the log level of yardstick is DEBUG and cannot be modified. 2. Make it can be changed from CLI. 3. When use dovetail run --debug, can see all Yardstick logs (including DEBUG) in dovetail.log. 4. When run without debug option, cannot see Yardstick debug logs in dovetail.logs. 5. yardstick.log always doesn't include debug logs. JIRA: DOVETAIL-506 Change-Id: Iaafb61232a22e16fff2fa4605bf7e262b022085e Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/report.py')
-rw-r--r--dovetail/report.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index fa6a0ba4..fa29d0c7 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -79,7 +79,7 @@ class Report(object):
'result': testcase.sub_testcase_passed(sub_test)
})
report_obj['testcases_list'].append(testcase_inreport)
- cls.logger.info(json.dumps(report_obj))
+ cls.logger.debug(json.dumps(report_obj))
return report_obj
@classmethod