util.session: Remove tostring call from logging
authorKim Alvefur <zash@zash.se>
Tue, 30 Jul 2019 02:24:06 +0200
changeset 10114 3fa3872588a8
parent 10113 c59d384b0959
child 10115 0f335815244f
util.session: Remove tostring call from logging Taken care of by loggingmanager now
util/session.lua
--- 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