Software /
code /
prosody
Changeset
10102:77a21eef243b
core.s2smanager: Remove use of tostring in logging
This is now performed by loggingmanager
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 29 Jul 2019 23:15:30 +0200 |
parents | 10101:ba7636860bbc |
children | 10103:18cab054364a |
files | core/s2smanager.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Mon Jul 29 17:26:03 2019 +0200 +++ b/core/s2smanager.lua Mon Jul 29 23:15:30 2019 +0200 @@ -75,8 +75,8 @@ 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);