aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-29 23:15:30 +0200
committerKim Alvefur <zash@zash.se>2019-07-29 23:15:30 +0200
commitcc653ef0d999ba46ad59cdd80be633a9f0d15557 (patch)
tree054eac1f8fe3f4624417f8baaf40cbb97dc862cd /core
parentab82920e54c61272770c93051deeb29396171228 (diff)
downloadprosody-cc653ef0d999ba46ad59cdd80be633a9f0d15557.tar.gz
prosody-cc653ef0d999ba46ad59cdd80be633a9f0d15557.zip
core.s2smanager: Remove use of tostring in logging
This is now performed by loggingmanager
Diffstat (limited to 'core')
-rw-r--r--core/s2smanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 684bb94e..48bf0544 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -75,8 +75,8 @@ local function retire_session(session, reason)
session.destruction_reason = reason;
- function session.send(data) log("debug", "Discarding data sent to resting session: %s", tostring(data)); 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); 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 };
session.sends2s = session.send;
return setmetatable(session, resting_session);