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 | 814e34400076376423770d65a1e7b262511df834 (patch) | |
tree | a79d692bf13317db2827b86a91b710be1d207900 | |
parent | 151dccede107452e57fea55fc34a9a17012589a6 (diff) | |
download | prosody-814e34400076376423770d65a1e7b262511df834.tar.gz prosody-814e34400076376423770d65a1e7b262511df834.zip |
core.sessionmanager: Remove tostring call from logging
Taken care of by loggingmanager now
-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 |