aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-30 02:24:06 +0200
committerKim Alvefur <zash@zash.se>2019-07-30 02:24:06 +0200
commit73fab2dc0d581b9744b611d97650cbe09ac6aaca (patch)
tree13ac8da63fe6286a8524f0289d9679a3fee2a085 /util
parente57ef38b90335796e0d6f571c55fccbe33a3fe17 (diff)
downloadprosody-73fab2dc0d581b9744b611d97650cbe09ac6aaca.tar.gz
prosody-73fab2dc0d581b9744b611d97650cbe09ac6aaca.zip
util.session: Remove tostring call from logging
Taken care of by loggingmanager now
Diffstat (limited to 'util')
-rw-r--r--util/session.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/session.lua b/util/session.lua
index b9c6bec7..25b22faf 100644
--- a/util/session.lua
+++ b/util/session.lua
@@ -31,7 +31,7 @@ local function set_send(session)
local conn = session.conn;
if not conn then
function session.send(data)
- session.log("debug", "Discarding data sent to unconnected session: %s", tostring(data));
+ session.log("debug", "Discarding data sent to unconnected session: %s", data);
return false;
end
return session;
@@ -47,7 +47,7 @@ local function set_send(session)
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