Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix logging config for the docker image #6197

Merged
merged 1 commit into from
Oct 18, 2019
Merged

Fix logging config for the docker image #6197

merged 1 commit into from
Oct 18, 2019

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Oct 11, 2019

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 #6194.

@richvdh richvdh requested a review from a team October 11, 2019 17:20
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 #6194.
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

@@ -68,9 +68,6 @@
filters: [context]

loggers:
synapse:
level: INFO

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this and not the synapse.storage.SQL below? It feels nice to give a place to easily up the synapse log level?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it's particularly likely that we would need to up the synapse log level and not other loggers? ie, why wouldn't you do this in the root logger?

The separate config for synapse.storage.SQL exists so that if you set your logging to DEBUG (either at the root level, or just for synapse), you don't start logging all the access tokens etc that go in and out of the database.

@richvdh richvdh merged commit 560c122 into develop Oct 18, 2019
@richvdh richvdh deleted the rav/fix_logging branch October 18, 2019 11:34
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '560c12226':
  Fix logging config for the docker image (#6197)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants