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

Increase default log level for docker image to INFO. #5547

Merged
merged 1 commit into from
Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5547.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Increase default log level for docker image to INFO. It can still be changed by editing the generated log.config file.
7 changes: 2 additions & 5 deletions docker/conf/log.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ handlers:
filters: [context]

loggers:
synapse:
level: {{ SYNAPSE_LOG_LEVEL or "WARNING" }}

synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
level: {{ SYNAPSE_LOG_LEVEL or "WARNING" }}
level: INFO
Copy link
Contributor

Choose a reason for hiding this comment

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

Why isn't this {{ SYNAPSE_LOG_LEVEL or "INFO" }}?

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't want it to go to DEBUG if we set Synapse to DEBUG. If they want to increase verboseness here, they'll have to use a proper config.


root:
level: {{ SYNAPSE_LOG_LEVEL or "WARNING" }}
level: {{ SYNAPSE_LOG_LEVEL or "INFO" }}
handlers: [console]