Commit cb6212b1 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Fixed werkzeug logging

parent a52b91c4
...@@ -14,7 +14,7 @@ handlers: ...@@ -14,7 +14,7 @@ handlers:
encoding: utf8 encoding: utf8
console: console:
class: logging.StreamHandler class: logging.StreamHandler
level: WARNING level: DEBUG
formatter: default formatter: default
root: root:
......
...@@ -30,6 +30,8 @@ app.config['CELERY_TASK_RESULT_EXPIRES'] =\ ...@@ -30,6 +30,8 @@ app.config['CELERY_TASK_RESULT_EXPIRES'] =\
with open(app.config['FRACTALIS_LOG_CONFIG'], 'rt') as f: with open(app.config['FRACTALIS_LOG_CONFIG'], 'rt') as f:
log_config = yaml.safe_load(f.read()) log_config = yaml.safe_load(f.read())
logging.config.dictConfig(log_config) logging.config.dictConfig(log_config)
log_level = logging._nameToLevel[log_config['handlers']['default']['level']]
logging.getLogger('werkzeug').setLevel(log_level)
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
# we can't log this earlier because the logger depends on the loaded app config # we can't log this earlier because the logger depends on the loaded app config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment