Mercurial > prosody-hg
diff plugins/mod_stanza_debug.lua @ 11200:bf8f2da84007
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Nov 2020 22:31:25 +0100 |
| parents | 0f335815244f |
| children | 74b9e05af71e |
line wrap: on
line diff
--- a/plugins/mod_stanza_debug.lua Thu Nov 05 22:27:17 2020 +0100 +++ b/plugins/mod_stanza_debug.lua Thu Nov 05 22:31:25 2020 +0100 @@ -1,18 +1,17 @@ module:set_global(); -local tostring = tostring; local filters = require "util.filters"; local function log_send(t, session) if t and t ~= "" and t ~= " " then - session.log("debug", "SEND: %s", tostring(t)); + session.log("debug", "SEND: %s", t); end return t; end local function log_recv(t, session) if t and t ~= "" and t ~= " " then - session.log("debug", "RECV: %s", tostring(t)); + session.log("debug", "RECV: %s", t); end return t; end
