From cb13098c4f06bb111d90531ad01e0709a39eeb85 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 3 Jan 2019 13:09:12 +0000 Subject: [PATCH] Moved initial print statement inside start method to make sure that it's properly caught by the logging configuration --- platypush/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/__init__.py b/platypush/__init__.py index e5ed492da6..30be78ecfc 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -138,6 +138,8 @@ class Daemon: def start(self): """ Start the daemon """ + print('---- Starting platypush v.{}'.format(__version__)) + redis_conf = Config.get('backend.redis') if redis_conf: self.bus = RedisBus(on_message=self.on_message(), @@ -175,7 +177,6 @@ def main(): sys.stdout = Logger(LOGGER.info) sys.stderr = Logger(LOGGER.warning) - print('Starting platypush v.{}'.format(__version__)) app = Daemon.build_from_cmdline(sys.argv[1:]) app.start()