Skip to content
Snippets Groups Projects
Commit 0a9370df authored by Gunnar Schaefer's avatar Gunnar Schaefer
Browse files

Set log level to environment spec immediately

parent c4367b6d
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,8 @@ for outer_key, scoped_config in __config.iteritems():
if not os.path.exists(__config['persistent']['data_path']):
os.makedirs(__config['persistent']['data_path'])
log.setLevel(getattr(logging, __config['core']['log_level'].upper()))
db = pymongo.MongoClient(
__config['persistent']['db_uri'],
j=True, # Requests only return once write has hit the DB journal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment