From 4b5ad3dd12f89528d6b39da5e8c462a23015658c Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 22 Nov 2018 18:18:21 +0000 Subject: [PATCH] Add SYNAPSE_LOG_HOST to enable HTTP logging for PDU tracking --- docker/conf/log.config | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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]