Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractalis
Commits
cb6212b1
Commit
cb6212b1
authored
Jun 22, 2018
by
Sascha Herzinger
Browse files
Fixed werkzeug logging
parent
a52b91c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
docker/config/fractalis/logging.yaml
View file @
cb6212b1
...
...
@@ -14,7 +14,7 @@ handlers:
encoding
:
utf8
console
:
class
:
logging.StreamHandler
level
:
WARNIN
G
level
:
DEBU
G
formatter
:
default
root
:
...
...
fractalis/__init__.py
View file @
cb6212b1
...
...
@@ -30,6 +30,8 @@ app.config['CELERY_TASK_RESULT_EXPIRES'] =\
with
open
(
app
.
config
[
'FRACTALIS_LOG_CONFIG'
],
'rt'
)
as
f
:
log_config
=
yaml
.
safe_load
(
f
.
read
())
logging
.
config
.
dictConfig
(
log_config
)
log_level
=
logging
.
_nameToLevel
[
log_config
[
'handlers'
][
'default'
][
'level'
]]
logging
.
getLogger
(
'werkzeug'
).
setLevel
(
log_level
)
log
=
logging
.
getLogger
(
__name__
)
# we can't log this earlier because the logger depends on the loaded app config
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment