Software /
code /
prosody
Diff
util/session.lua @ 10110:3fa3872588a8
util.session: Remove tostring call from logging
Taken care of by loggingmanager now
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 30 Jul 2019 02:24:06 +0200 |
parent | 9947:8ebca1240203 |
child | 12640:999b1c59af6f |
line wrap: on
line diff
--- a/util/session.lua Tue Jul 30 02:23:44 2019 +0200 +++ b/util/session.lua Tue Jul 30 02:24:06 2019 +0200 @@ -31,7 +31,7 @@ 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 @@ 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