mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-25 18:38:30 +01:00
Merge pull request #35 from aaronraimist/configurable-log-levels
Allow Synapse log levels to be configured (#23)
This commit is contained in:
commit
31502eb3e5
14
CHANGELOG.md
14
CHANGELOG.md
@ -1,3 +1,17 @@
|
|||||||
|
# 2018-11-14
|
||||||
|
|
||||||
|
## Ability to set Synapse log levels
|
||||||
|
|
||||||
|
The playbook now allows you to set the log levels used by Synapse. The default logging levels remain the same.
|
||||||
|
|
||||||
|
You can now override following variables with any of the supported log levels listed here: https://docs.python.org/3/library/logging.html#logging-levels
|
||||||
|
|
||||||
|
```
|
||||||
|
matrix_synapse_log_level: "INFO"
|
||||||
|
matrix_synapse_storage_sql_log_level: "INFO"
|
||||||
|
matrix_synapse_root_log_level: "INFO"
|
||||||
|
```
|
||||||
|
|
||||||
# 2018-11-03
|
# 2018-11-03
|
||||||
|
|
||||||
## Customize parts of Riot's config
|
## Customize parts of Riot's config
|
||||||
|
@ -63,6 +63,14 @@ matrix_synapse_max_upload_size_mb: 10
|
|||||||
matrix_synapse_max_log_file_size_mb: 100
|
matrix_synapse_max_log_file_size_mb: 100
|
||||||
matrix_synapse_max_log_files_count: 10
|
matrix_synapse_max_log_files_count: 10
|
||||||
|
|
||||||
|
# Log levels
|
||||||
|
# Possible options are defined here https://docs.python.org/3/library/logging.html#logging-levels
|
||||||
|
# warning: setting log level to DEBUG will make synapse log sensitive information such
|
||||||
|
# as access tokens
|
||||||
|
matrix_synapse_log_level: "INFO"
|
||||||
|
matrix_synapse_storage_sql_log_level: "INFO"
|
||||||
|
matrix_synapse_root_log_level: "INFO"
|
||||||
|
|
||||||
# Rate limits
|
# Rate limits
|
||||||
matrix_synapse_rc_messages_per_second: 0.2
|
matrix_synapse_rc_messages_per_second: 0.2
|
||||||
matrix_synapse_rc_message_burst_count: 10.0
|
matrix_synapse_rc_message_burst_count: 10.0
|
||||||
|
@ -25,12 +25,12 @@ handlers:
|
|||||||
|
|
||||||
loggers:
|
loggers:
|
||||||
synapse:
|
synapse:
|
||||||
level: INFO
|
level: {{ matrix_synapse_log_level }}
|
||||||
|
|
||||||
synapse.storage.SQL:
|
synapse.storage.SQL:
|
||||||
# beware: increasing this to DEBUG will make synapse log sensitive
|
# beware: increasing this to DEBUG will make synapse log sensitive
|
||||||
# information such as access tokens.
|
# information such as access tokens.
|
||||||
level: INFO
|
level: {{ matrix_synapse_storage_sql_log_level }}
|
||||||
|
|
||||||
{% for logger in matrix_synapse_additional_loggers %}
|
{% for logger in matrix_synapse_additional_loggers %}
|
||||||
{{ logger.name }}:
|
{{ logger.name }}:
|
||||||
@ -38,5 +38,5 @@ loggers:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
root:
|
root:
|
||||||
level: INFO
|
level: {{ matrix_synapse_root_log_level }}
|
||||||
handlers: [file, console]
|
handlers: [file, console]
|
||||||
|
Loading…
Reference in New Issue
Block a user