Tidy up logging statements.

This commit is contained in:
Stephen Diehl
2012-06-13 16:21:43 -04:00
parent 61ee2420eb
commit 9c9cddb2e8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ class Controller(object):
if (old, new) not in CONTROLLER_TRANSITIONS:
raise RuntimeError("Invalid State Transition : %s -> %s" %(old, new))
else:
log.error("State Transition : %s -> %s" %(old, new))
log.info("State Transition : %s -> %s" %(old, new))
def run(self):
self.running = True
@@ -364,7 +364,7 @@ class Controller(object):
fail_handlers = { }
if component in self.topology or self.freeform:
log.error('Component "%s" timed out' % component)
log.warning('Component "%s" timed out' % component)
self.tracked.remove(component)
fail_handlers.get(component, universal)()
+1 -1
View File
@@ -288,7 +288,7 @@ class PerformanceTracker(object):
msg = zp.PERF_FRAME(self.to_dict())
self.results_socket.send(msg)
else:
log.info(self.to_dict())
log.debug(self.to_dict())
#
if self.trading_environment.max_drawdown: