summaryrefslogtreecommitdiffstats
path: root/dovetail/patch
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/patch
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/patch')
-rw-r--r--dovetail/patch/0001-Adjust-Yardstick-HA-test-cases-SLA-and-log-level.patch (renamed from dovetail/patch/0001-Adjust-Yardstick-HA-test-cases-SLA.patch)26
1 files changed, 20 insertions, 6 deletions
diff --git a/dovetail/patch/0001-Adjust-Yardstick-HA-test-cases-SLA.patch b/dovetail/patch/0001-Adjust-Yardstick-HA-test-cases-SLA-and-log-level.patch
index 92c68032..8c9589ca 100644
--- a/dovetail/patch/0001-Adjust-Yardstick-HA-test-cases-SLA.patch
+++ b/dovetail/patch/0001-Adjust-Yardstick-HA-test-cases-SLA-and-log-level.patch
@@ -1,7 +1,7 @@
-From 3beb6cdffa830f009d246e6352efa7ccf70463a0 Mon Sep 17 00:00:00 2001
-From: Jing Lu <hanazawarei@icloud.com>
-Date: Sat, 26 Aug 2017 10:07:52 +0800
-Subject: [PATCH] Adjust Yardstick HA test cases SLA
+From b7c13b5a7e07abdf4d3631049625461271fa5c5b Mon Sep 17 00:00:00 2001
+From: cvp <cvp@example.com>
+Date: Tue, 26 Sep 2017 03:59:54 +0000
+Subject: [PATCH] Adjust Yardstick HA test cases SLA and log level
---
tests/opnfv/test_cases/opnfv_yardstick_tc019.yaml | 4 ++--
@@ -10,7 +10,8 @@ Subject: [PATCH] Adjust Yardstick HA test cases SLA
tests/opnfv/test_cases/opnfv_yardstick_tc047.yaml | 4 ++--
tests/opnfv/test_cases/opnfv_yardstick_tc048.yaml | 4 ++--
tests/opnfv/test_cases/opnfv_yardstick_tc053.yaml | 4 ++--
- 6 files changed, 12 insertions(+), 12 deletions(-)
+ yardstick/__init__.py | 2 +-
+ 7 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/tests/opnfv/test_cases/opnfv_yardstick_tc019.yaml b/tests/opnfv/test_cases/opnfv_yardstick_tc019.yaml
index 5d3057d..c1d3645 100644
@@ -114,6 +115,19 @@ index 9e05cc8..e3f0934 100644
-
monitor_type: "openstack-cmd"
+diff --git a/yardstick/__init__.py b/yardstick/__init__.py
+index 2f5ae9f..973bfa2 100644
+--- a/yardstick/__init__.py
++++ b/yardstick/__init__.py
+@@ -44,7 +44,7 @@ def _init_logging():
+ _LOG_STREAM_HDLR.setLevel(logging.INFO)
+ # don't append to log file, clobber
+ _LOG_FILE_HDLR.setFormatter(_LOG_FORMATTER)
+- _LOG_FILE_HDLR.setLevel(logging.DEBUG)
++ _LOG_FILE_HDLR.setLevel(logging.INFO)
+
+ del logging.root.handlers[:]
+ logging.root.addHandler(_LOG_STREAM_HDLR)
--
-2.13.1 (Apple Git-89)
+1.9.1