diff --git a/src/packets/packet.ts b/src/packets/packet.ts index b0f7c7d..d58c41c 100644 --- a/src/packets/packet.ts +++ b/src/packets/packet.ts @@ -24,7 +24,9 @@ export class SendPacket { data.writeUints(3, this.header.size); data.write(this.header.no); data.writeBuffer(body); - log.debug(`send: ${data.length}B \n${byteFormat(data.buffer)}\n`); + debug(() => { + log.debug(`send: ${data.length}B \n${byteFormat(data.buffer)}\n`); + }); try { let wrote = 0; do {