From 855aca35b77ce8a35b7e3ddbeeb532c447ffa25a Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Mon, 19 Aug 2024 22:01:00 +0100 Subject: Allow prosody's debug logging to be enabled This lets us log each individual stanza from a server perspective, which can be useful when debugging client behaviour. --- files/prosody.cfg.lua.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'files') diff --git a/files/prosody.cfg.lua.j2 b/files/prosody.cfg.lua.j2 index b107536..d56381c 100644 --- a/files/prosody.cfg.lua.j2 +++ b/files/prosody.cfg.lua.j2 @@ -30,6 +30,7 @@ modules_enabled = { "saslauth"; "server_contact_info"; "smacks"; + "stanza_debug"; "time"; "tls"; "uptime"; @@ -43,6 +44,9 @@ modules_disabled = { } pidfile = "/run/prosody/prosody.pid"; log = { +{% if debug_logging %} + debug = "/var/log/prosody/prosody.debug"; +{% endif %} info = "/var/log/prosody/prosody.log"; error = "/var/log/prosody/prosody.err"; { levels = { "error" }; to = "syslog"; }; -- cgit v1.2.3