Software /
code /
prosody
Comparison
core/s2smanager.lua @ 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 |
parent | 9938:4e8ba156738b |
child | 10103:18cab054364a |
comparison
equal
deleted
inserted
replaced
10101:ba7636860bbc | 10102:77a21eef243b |
---|---|
73 end | 73 end |
74 end | 74 end |
75 | 75 |
76 session.destruction_reason = reason; | 76 session.destruction_reason = reason; |
77 | 77 |
78 function session.send(data) log("debug", "Discarding data sent to resting session: %s", tostring(data)); end | 78 function session.send(data) log("debug", "Discarding data sent to resting session: %s", data); end |
79 function session.data(data) log("debug", "Discarding data received from resting session: %s", tostring(data)); end | 79 function session.data(data) log("debug", "Discarding data received from resting session: %s", data); end |
80 session.thread = { run = function (_, data) return session.data(data) end }; | 80 session.thread = { run = function (_, data) return session.data(data) end }; |
81 session.sends2s = session.send; | 81 session.sends2s = session.send; |
82 return setmetatable(session, resting_session); | 82 return setmetatable(session, resting_session); |
83 end | 83 end |
84 | 84 |