From c06907b3183da90449a6ddf39dcce72171452c2a Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 14 Mar 2022 15:08:48 -0500 Subject: [PATCH] fix: debugging binary isn't very useful --- packages/socket/src/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/socket/src/socket.js b/packages/socket/src/socket.js index 561109c..899b16d 100644 --- a/packages/socket/src/socket.js +++ b/packages/socket/src/socket.js @@ -17,7 +17,7 @@ export default class Socket { const [type, Packet] = Packets[i]; this.socket.on(Packet.id, (data, fn) => { const packet = new Packet(Packet.decode(Buffer.from(data))); - debug('received packet %s(%j)', type, data); + debug('received packet %s(%j)', type, packet.data); this.emit('packet', packet, fn); }); }