mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 21:46:37 +08:00
Tidy up logging statements.
This commit is contained in:
@@ -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)()
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user