Revamp the logging a bit. Not quite done yet.

This commit is contained in:
Jake Moshenko 2014-05-01 19:44:28 -04:00
parent 3fb4fafb33
commit a5a61576ae
10 changed files with 91 additions and 52 deletions

View file

@ -489,7 +489,8 @@ def populate_database():
'service': trigger.service.name})
if __name__ == '__main__':
app.config['LOGGING_CONFIG']()
log_level = getattr(logging, app.config['LOGGING_LEVEL'])
logging.basicConfig(level=log_level)
initialize_database()
if app.config.get('POPULATE_DB_TEST_DATA', False):