1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-19 22:15:49 +00:00

Fix logging config for the docker image ()

Turns out that loggers that are instantiated before the config is loaded get
turned off.

Also bring the logging config that is generated by --generate-config into line.

Fixes .
This commit is contained in:
Richard van der Hoff 2019-10-18 13:34:33 +02:00 committed by GitHub
parent 1ee97cbd01
commit 560c122267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions
changelog.d
docker/conf
synapse/config

1
changelog.d/6197.docker Normal file
View file

@ -0,0 +1 @@
Fix logging getting lost for the docker image.

View file

@ -24,3 +24,5 @@ loggers:
root:
level: {{ SYNAPSE_LOG_LEVEL or "INFO" }}
handlers: [console]
disable_existing_loggers: false

View file

@ -68,9 +68,6 @@ handlers:
filters: [context]
loggers:
synapse:
level: INFO
synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
@ -79,6 +76,8 @@ loggers:
root:
level: INFO
handlers: [file, console]
disable_existing_loggers: false
"""
)