# HG changeset patch # User Kim Alvefur # Date 1564445967 -7200 # Node ID 63f87211fcdd8e6caee8c05d6a28e8d8fbc402e9 # Parent 3965081809bae7dd67512581b3aaae92cb1af094 core.sessionmanager: Remove tostring call from logging Taken care of by loggingmanager now diff -r 3965081809ba -r 63f87211fcdd core/sessionmanager.lua --- 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