aboutsummaryrefslogtreecommitdiffstats
path: root/core
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
commit8a87b70092c75b6fac191cf9f79787f7235bf60d (patch)
treea79d692bf13317db2827b86a91b710be1d207900 /core
parentd7770bba849e88e4ece97c65ebaabadbb78c8755 (diff)
downloadprosody-8a87b70092c75b6fac191cf9f79787f7235bf60d.tar.gz
prosody-8a87b70092c75b6fac191cf9f79787f7235bf60d.zip
core.sessionmanager: Remove tostring call from logging
Taken care of by loggingmanager now
Diffstat (limited to 'core')
-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