From 85e9df6c46dd675bab5bd2d61a929e24f962b603 Mon Sep 17 00:00:00 2001 From: magne Date: Wed, 29 Oct 2025 14:15:46 +0100 Subject: [PATCH 1/2] fix: reading bytes in log --- src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.ts b/src/connection.ts index 2e087398..c76d6a58 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -404,7 +404,7 @@ export class Connection { } private received(data: Buffer) { - this.logger.debug(`Receiving ${data.length} (${data.readUInt32BE()}) bytes ... ${inspect(data)}`) + this.logger.debug(`Receiving ${data.length} (${data.readIntBE(0, data.length)}) bytes ... ${inspect(data)}`) this.decoder.add(data, (ct) => this.getCompression(ct)) } From c537be210f8374b403a390707078dc440d9d03d6 Mon Sep 17 00:00:00 2001 From: magne Date: Wed, 29 Oct 2025 14:18:58 +0100 Subject: [PATCH 2/2] fix: remove reading bytes as number in log --- src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.ts b/src/connection.ts index c76d6a58..a8d83a36 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -404,7 +404,7 @@ export class Connection { } private received(data: Buffer) { - this.logger.debug(`Receiving ${data.length} (${data.readIntBE(0, data.length)}) bytes ... ${inspect(data)}`) + this.logger.debug(`Receiving ${data.length} bytes ... ${inspect(data)}`) this.decoder.add(data, (ct) => this.getCompression(ct)) }