aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-07-14 08:09:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-14 08:09:50 +0000
commit80e57bf2264577cb08c2c347c7f0d272ee8d192f (patch)
treec7643ad82e10065b0e588a712f35010b1e89cfbc /yardstick
parent4b47f130f31dc7a82e3dfa842acc169cd5d05a07 (diff)
parent27b714eaf81c38ff06635f6ca809cdcd46ee2cf7 (diff)
Merge "test_monitor_command: mock LOG so we don't output error"
Diffstat (limited to 'yardstick')
-rw-r--r--yardstick/benchmark/scenarios/availability/monitor/monitor_command.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/yardstick/benchmark/scenarios/availability/monitor/monitor_command.py b/yardstick/benchmark/scenarios/availability/monitor/monitor_command.py
index a0777f94e..a9488cc30 100644
--- a/yardstick/benchmark/scenarios/availability/monitor/monitor_command.py
+++ b/yardstick/benchmark/scenarios/availability/monitor/monitor_command.py
@@ -11,7 +11,6 @@ from __future__ import absolute_import
import os
import logging
import subprocess
-import traceback
import yardstick.ssh as ssh
from yardstick.benchmark.scenarios.availability.monitor import basemonitor
@@ -27,9 +26,7 @@ def _execute_shell_command(command):
output = subprocess.check_output(command, shell=True)
except Exception:
exitcode = -1
- output = traceback.format_exc()
- LOG.error("exec command '%s' error:\n ", command)
- LOG.error(traceback.format_exc())
+ LOG.error("exec command '%s' error:\n ", command, exc_info=True)
return exitcode, output