diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-30 02:19:27 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-30 02:19:27 +0200 |
commit | 8a87b70092c75b6fac191cf9f79787f7235bf60d (patch) | |
tree | a79d692bf13317db2827b86a91b710be1d207900 /core | |
parent | d7770bba849e88e4ece97c65ebaabadbb78c8755 (diff) | |
download | prosody-8a87b70092c75b6fac191cf9f79787f7235bf60d.tar.gz prosody-8a87b70092c75b6fac191cf9f79787f7235bf60d.zip |
core.sessionmanager: Remove tostring call from logging
Taken care of by loggingmanager now
Diffstat (limited to 'core')
-rw-r--r-- | core/sessionmanager.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 55f096b9..29779c3c 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -44,7 +44,7 @@ local function new_session(conn) 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 @@ local function retire_session(session) 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 |