diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-29 23:15:30 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-29 23:15:30 +0200 |
commit | cc653ef0d999ba46ad59cdd80be633a9f0d15557 (patch) | |
tree | 054eac1f8fe3f4624417f8baaf40cbb97dc862cd /core | |
parent | ab82920e54c61272770c93051deeb29396171228 (diff) | |
download | prosody-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.lua | 4 |
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); |