util/session.lua
changeset 10114 3fa3872588a8
parent 9951 8ebca1240203
child 12644 999b1c59af6f
--- 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