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
commit9b7ab06ef37d1271d76f2ef9cba6b8f72af199ce (patch)
tree461c2db0ac0ac2e610d67fd36ec9154e9613ee65 /plugins/mod_csi_simple.lua
parentd4c1384269b98e3a0e21b4cf3615a6d116100fd6 (diff)
downloadprosody-9b7ab06ef37d1271d76f2ef9cba6b8f72af199ce.tar.gz
prosody-9b7ab06ef37d1271d76f2ef9cba6b8f72af199ce.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