# HG changeset patch # User Kim Alvefur # Date 1564446928 -7200 # Node ID 66a9bc2d5c8de98f2a6965966eef17eb5d135c06 # Parent b327f2870382745272fde3e310c7d5640e6d4be7 net.websocket: Fix log call to pass data via format string instead of concatenation diff -r b327f2870382 -r 66a9bc2d5c8d net/websocket.lua --- 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