From 56da9d53f8d245b2125d683938977fec1e1dd0f3 Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Tue, 10 Jul 2012 07:27:24 -0400 Subject: [PATCH] Fixed other stray logging statement. --- zipline/core/monitor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zipline/core/monitor.py b/zipline/core/monitor.py index 56061944..7b742627 100644 --- a/zipline/core/monitor.py +++ b/zipline/core/monitor.py @@ -105,7 +105,8 @@ class Controller(object): self.context = self.zmq.Context() self.zmq_poller = self.zmq.Poller - log.warning("USING DEVELOPMENT MODE IN MP CONTEXT NOT RECOMMENDED") + if self.devel: + log.warning("USING DEVELOPMENT MODE IN MP CONTEXT NOT RECOMMENDED") return if flavor == 'thread': self.zmq = zmq @@ -370,6 +371,7 @@ class Controller(object): """ if not self.nosignals: ppid = os.getpid() + log.warning("Sending SIGHUP") os.kill(ppid, SIGHUP) else: log.warning("Would SIGHUP here, but disabled")