Software /
code /
prosody
Diff
core/sessionmanager.lua @ 10105:63f87211fcdd
core.sessionmanager: Remove tostring call from logging
Taken care of by loggingmanager now
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 30 Jul 2019 02:19:27 +0200 |
parent | 10043:ce8e18f20693 |
child | 10372:5482f21a18a2 |
line wrap: on
line diff
--- a/core/sessionmanager.lua Tue Jul 30 02:18:59 2019 +0200 +++ b/core/sessionmanager.lua Tue Jul 30 02:19:27 2019 +0200 @@ -44,7 +44,7 @@ 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 @@ 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