Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
switch logging to proper usage
[yardstick.git]
/
yardstick
/
benchmark
/
scenarios
/
availability
/
monitor
/
basemonitor.py
diff --git
a/yardstick/benchmark/scenarios/availability/monitor/basemonitor.py
b/yardstick/benchmark/scenarios/availability/monitor/basemonitor.py
index
d26c99c
..
38d1c4e
100644
(file)
--- a/
yardstick/benchmark/scenarios/availability/monitor/basemonitor.py
+++ b/
yardstick/benchmark/scenarios/availability/monitor/basemonitor.py
@@
-27,7
+27,7
@@
class MonitorMgr(object):
self._monitor_list = []
def init_monitors(self, monitor_cfgs, context):
self._monitor_list = []
def init_monitors(self, monitor_cfgs, context):
- LOG.debug("monitorMgr config: %s"
%
monitor_cfgs)
+ LOG.debug("monitorMgr config: %s"
,
monitor_cfgs)
for monitor_cfg in monitor_cfgs:
monitor_type = monitor_cfg["monitor_type"]
for monitor_cfg in monitor_cfgs:
monitor_type = monitor_cfg["monitor_type"]
@@
-87,7
+87,7
@@
class BaseMonitor(multiprocessing.Process):
return os.path.join(base_path, path)
def run(self):
return os.path.join(base_path, path)
def run(self):
- LOG.debug("config:%s context:%s"
% (self._config, self._context)
)
+ LOG.debug("config:%s context:%s"
, self._config, self._context
)
self.setup()
monitor_time = self._config.get("monitor_time", 0)
self.setup()
monitor_time = self._config.get("monitor_time", 0)
@@
-140,7
+140,7
@@
class BaseMonitor(multiprocessing.Process):
def wait_monitor(self):
self.join()
self._result = self._queue.get()
def wait_monitor(self):
self.join()
self._result = self._queue.get()
- LOG.debug("the monitor result:%s"
%
self._result)
+ LOG.debug("the monitor result:%s"
,
self._result)
def setup(self): # pragma: no cover
pass
def setup(self): # pragma: no cover
pass