always instantiate logger

This commit is contained in:
Davide Alberani 2016-04-19 22:04:52 +02:00
parent 5b9beb60f3
commit e550c18170

View file

@ -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)