diff options
author | Kristian Hunt <kristian.hunt@gmail.com> | 2015-09-16 10:34:33 +0200 |
---|---|---|
committer | Kristian Hunt <kristian.hunt@gmail.com> | 2015-09-16 11:08:24 +0200 |
commit | d53407ddf0c43bdc79f15a8fe67333090613f90a (patch) | |
tree | a7859e9efb05712bf686738354a0e92a20aba29d /yardstick/benchmark/scenarios/compute | |
parent | 2aa1cd3922f26b9d8c9bdad310463caa5eeb8136 (diff) |
Remove setting logger level to debug in scenarios
Logging level should be specified using a command line flag -v or -d
when running yardstick, rather than hardcoded into source code. If the
message is to be displayed whenever yardstick is executed regardless
of the verbosity level, then the message should be logged to warning
or error levels, instead of debug.
JIRA: YARDSTICK-95
Change-Id: Idc9b81b583f4999bfbc57893f0ab3c3675c70f71
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Diffstat (limited to 'yardstick/benchmark/scenarios/compute')
-rw-r--r-- | yardstick/benchmark/scenarios/compute/lmbench.py | 3 | ||||
-rw-r--r-- | yardstick/benchmark/scenarios/compute/perf.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/yardstick/benchmark/scenarios/compute/lmbench.py b/yardstick/benchmark/scenarios/compute/lmbench.py index 4ce2825c7..367739128 100644 --- a/yardstick/benchmark/scenarios/compute/lmbench.py +++ b/yardstick/benchmark/scenarios/compute/lmbench.py @@ -14,7 +14,6 @@ import yardstick.ssh as ssh from yardstick.benchmark.scenarios import base LOG = logging.getLogger(__name__) -LOG.setLevel(logging.DEBUG) class Lmbench(base.Scenario): @@ -49,7 +48,7 @@ class Lmbench(base.Scenario): host = self.context.get("host", None) key_filename = self.context.get('key_filename', "~/.ssh/id_rsa") - LOG.debug("user:%s, host:%s", user, host) + LOG.info("user:%s, host:%s", user, host) self.client = ssh.SSH(user, host, key_filename=key_filename) self.client.wait(timeout=600) diff --git a/yardstick/benchmark/scenarios/compute/perf.py b/yardstick/benchmark/scenarios/compute/perf.py index 62b4297e3..a874ea94c 100644 --- a/yardstick/benchmark/scenarios/compute/perf.py +++ b/yardstick/benchmark/scenarios/compute/perf.py @@ -14,7 +14,6 @@ import yardstick.ssh as ssh from yardstick.benchmark.scenarios import base LOG = logging.getLogger(__name__) -LOG.setLevel(logging.DEBUG) class Perf(base.Scenario): @@ -49,7 +48,7 @@ class Perf(base.Scenario): host = self.context.get('host', None) key_filename = self.context.get('key_filename', '~/.ssh/id_rsa') - LOG.debug("user:%s, host:%s", user, host) + LOG.info("user:%s, host:%s", user, host) self.client = ssh.SSH(user, host, key_filename=key_filename) self.client.wait(timeout=600) |