Software /
code /
prosody
Diff
plugins/mod_stanza_debug.lua @ 10111:0f335815244f
plugins: Remove tostring call from logging
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 30 Jul 2019 02:29:36 +0200 |
parent | 8348:c3de5b454ec4 |
child | 12977:74b9e05af71e |
line wrap: on
line diff
--- a/plugins/mod_stanza_debug.lua Tue Jul 30 02:24:06 2019 +0200 +++ b/plugins/mod_stanza_debug.lua Tue Jul 30 02:29:36 2019 +0200 @@ -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