diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-08-19 22:01:00 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-08-19 22:01:00 +0100 |
commit | 855aca35b77ce8a35b7e3ddbeeb532c447ffa25a (patch) | |
tree | c1e9536579fb29622954cec45cbee57ced039356 | |
parent | d19a3167794dc2ecf01baa8f6095c8a02259597e (diff) |
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.
-rw-r--r-- | files/prosody.cfg.lua.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
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"; }; |