Changeset

10113:66a9bc2d5c8d

net.websocket: Fix log call to pass data via format string instead of concatenation
author Kim Alvefur <zash@zash.se>
date Tue, 30 Jul 2019 02:35:28 +0200
parents 10112:b327f2870382
children 10114:2f7628804db6
files net/websocket.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/websocket.lua	Tue Jul 30 02:35:17 2019 +0200
+++ b/net/websocket.lua	Tue Jul 30 02:35:28 2019 +0200
@@ -113,7 +113,7 @@
 				frame.MASK = true; -- RFC 6455 6.1.5: If the data is being sent by the client, the frame(s) MUST be masked
 				conn:write(frames.build(frame));
 			elseif frame.opcode == 0xA then -- Pong frame
-				log("debug", "Received unexpected pong frame: " .. tostring(frame.data));
+				log("debug", "Received unexpected pong frame: %s", frame.data);
 			else
 				return fail(s, 1002, "Reserved opcode");
 			end