plugins: Remove tostring call from logging

Taken care of by loggingmanager now

Mass-rewrite using lua pattern like `tostring%b()`
This commit is contained in:
Kim Alvefur 2019-07-30 02:29:36 +02:00
parent 0e16eeb216
commit 40b1e3e0ed
14 changed files with 37 additions and 39 deletions

View file

@ -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