mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 01:21:09 +03:00
Add SYNAPSE_LOG_HOST to enable HTTP logging for PDU tracking
This commit is contained in:
parent
a688d10bca
commit
4b5ad3dd12
1 changed files with 13 additions and 0 deletions
|
@ -15,6 +15,13 @@ handlers:
|
|||
formatter: precise
|
||||
filters: [context]
|
||||
|
||||
{% if SYNAPSE_LOG_HOST %}
|
||||
http_meshsim:
|
||||
class: logging.handlers.HTTPHandler
|
||||
host: {{ SYNAPSE_LOG_HOST }}:3000
|
||||
url: "/log"
|
||||
{% endif %}
|
||||
|
||||
loggers:
|
||||
synapse:
|
||||
level: {{ SYNAPSE_LOG_LEVEL or "WARNING" }}
|
||||
|
@ -24,6 +31,12 @@ loggers:
|
|||
# information such as access tokens.
|
||||
level: {{ SYNAPSE_LOG_LEVEL or "WARNING" }}
|
||||
|
||||
{% if SYNAPSE_LOG_HOST %}
|
||||
synapse.federation.pdu_destination_logger:
|
||||
level: INFO
|
||||
handlers: [http_meshsim,console]
|
||||
{% endif %}
|
||||
|
||||
root:
|
||||
level: {{ SYNAPSE_LOG_LEVEL or "WARNING" }}
|
||||
handlers: [console]
|
||||
|
|
Loading…
Reference in a new issue