diff options
author | Erik Johnston <erik@matrix.org> | 2018-11-22 18:18:21 +0000 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-02-13 15:15:56 +0000 |
commit | 4b5ad3dd12f89528d6b39da5e8c462a23015658c (patch) | |
tree | b7af70c532c0b10350140f47d9547df8f546c723 | |
parent | secret password; more timeout (diff) | |
download | synapse-4b5ad3dd12f89528d6b39da5e8c462a23015658c.tar.xz |
Add SYNAPSE_LOG_HOST to enable HTTP logging for PDU tracking
-rw-r--r-- | docker/conf/log.config | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/conf/log.config b/docker/conf/log.config index 1851995802..cd121bb129 100644 --- a/docker/conf/log.config +++ b/docker/conf/log.config @@ -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] |