diff options
author | Kim Alvefur <zash@zash.se> | 2020-05-10 23:06:21 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-05-10 23:06:21 +0200 |
commit | aba0d80e94e48aba23f0c1de4137489fc7485bdb (patch) | |
tree | 461c2db0ac0ac2e610d67fd36ec9154e9613ee65 /plugins/mod_csi_simple.lua | |
parent | 3e50ef4da605e3203830a56bb7302ec80aa865d4 (diff) | |
download | prosody-aba0d80e94e48aba23f0c1de4137489fc7485bdb.tar.gz prosody-aba0d80e94e48aba23f0c1de4137489fc7485bdb.zip |
mod_csi_simple: Identify raw string data in logging and stats
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r-- | plugins/mod_csi_simple.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index 0c428c4a..3f3271f0 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -16,8 +16,10 @@ local queue_size = module:get_option_number("csi_queue_size", 256); local important_payloads = module:get_option_set("csi_important_payloads", { }); function is_important(stanza) --> boolean, reason: string - if not st.is_stanza(stanza) then + if type(stanza) == "string" then -- whitespace pings etc + return true, "raw data"; + elseif not st.is_stanza(stanza) then return true; end if stanza.attr.xmlns ~= nil then |