Mercurial > prosody-hg
diff plugins/mod_stanza_debug.lua @ 10411:db2a06b9ff98
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 16 Nov 2019 16:52:31 +0100 |
| parents | 0f335815244f |
| children | 74b9e05af71e |
line wrap: on
line diff
--- a/plugins/mod_stanza_debug.lua Sat Nov 16 16:45:33 2019 +0100 +++ b/plugins/mod_stanza_debug.lua Sat Nov 16 16:52:31 2019 +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
