Merge pull request #104 from alberanid/master

always instantiate logger
This commit is contained in:
Davide Alberani 2016-04-19 22:05:34 +02:00
commit 3d50df046d

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)