From e550c181709273abe5f9beaa5fe7fcc0bac4895b Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Tue, 19 Apr 2016 22:04:52 +0200 Subject: [PATCH] always instantiate logger --- eventman_server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eventman_server.py b/eventman_server.py index 7ea27bb..25a56cc 100755 --- a/eventman_server.py +++ b/eventman_server.py @@ -678,9 +678,8 @@ def run(): callback=lambda path: tornado.options.parse_config_file(path, final=False)) tornado.options.parse_command_line() - if options.debug: - logger = logging.getLogger() - logger.setLevel(logging.DEBUG) + logger = logging.getLogger() + logger.setLevel(logging.DEBUG) # database backend connector db_connector = backend.EventManDB(url=options.mongo_url, dbName=options.db_name)