aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-30 02:19:27 +0200
committerKim Alvefur <zash@zash.se>2019-07-30 02:19:27 +0200
commit814e34400076376423770d65a1e7b262511df834 (patch)
treea79d692bf13317db2827b86a91b710be1d207900
parent151dccede107452e57fea55fc34a9a17012589a6 (diff)
downloadprosody-814e34400076376423770d65a1e7b262511df834.tar.gz
prosody-814e34400076376423770d65a1e7b262511df834.zip
core.sessionmanager: Remove tostring call from logging
Taken care of by loggingmanager now
-rw-r--r--core/sessionmanager.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 55f096b9..29779c3c 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -44,7 +44,7 @@ local function new_session(conn)
if t then
local ret, err = w(conn, t);
if not ret then
- session.log("debug", "Error writing to connection: %s", tostring(err));
+ session.log("debug", "Error writing to connection: %s", err);
return false, err;
end
end
@@ -85,8 +85,8 @@ local function retire_session(session)
end
end
- function session.send(data) log("debug", "Discarding data sent to resting session: %s", tostring(data)); return false; end
- function session.data(data) log("debug", "Discarding data received from resting session: %s", tostring(data)); end
+ function session.send(data) log("debug", "Discarding data sent to resting session: %s", data); return false; end
+ function session.data(data) log("debug", "Discarding data received from resting session: %s", data); end
session.thread = { run = function (_, data) return session.data(data) end };
return setmetatable(session, resting_session);
end