aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-10 23:06:21 +0200
committerKim Alvefur <zash@zash.se>2020-05-10 23:06:21 +0200
commitaba0d80e94e48aba23f0c1de4137489fc7485bdb (patch)
tree461c2db0ac0ac2e610d67fd36ec9154e9613ee65 /plugins/mod_csi_simple.lua
parent3e50ef4da605e3203830a56bb7302ec80aa865d4 (diff)
downloadprosody-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.lua4
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