diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-12 17:30:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-12 17:30:16 +0200 |
commit | 6c597cc8d9ba1f6f98cd7f6e4dff697c73cd652c (patch) | |
tree | 0db493505756ac73bdca26cd0876f250bd897b7e | |
parent | f0ac29acf0d1d6cd947ac2e20dc6bcbbbddf76f6 (diff) | |
download | prosody-6c597cc8d9ba1f6f98cd7f6e4dff697c73cd652c.tar.gz prosody-6c597cc8d9ba1f6f98cd7f6e4dff697c73cd652c.zip |
mod_scansion_record: Indent stanzas in recordings
Improves readability, easier to see structure.
-rw-r--r-- | plugins/mod_scansion_record.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index 8d772b4e..0e109a0d 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -37,8 +37,7 @@ local function record_event(session, event) end local function record_stanza(stanza, session, verb) - local flattened = tostring(stanza):gsub("><", ">\n\t<"); - -- TODO Proper prettyprinting with indentation + local flattened = tostring(stanza:indent(2, "\t")); record(session.scansion_id.." "..verb..":\n\t"..flattened.."\n\n"); end |