Skip to content

Commit 48ca4fd

Browse files
committed
chore: less verbose invalid msgs
1 parent abd8338 commit 48ca4fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapters/web-socket-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class WebSocketAdapter extends EventEmitter implements IWebSocketAdapter
195195
console.error(`web-socket-adapter: abort from client ${this.clientId} (${this.getClientAddress()})`)
196196
} else if (error.name === 'SyntaxError' || error.name === 'ValidationError') {
197197
if (typeof (error as any).annotate === 'function') {
198-
console.error(`web-socket-adapter: invalid message client ${this.clientId} (${this.getClientAddress()}):`, (error as any).annotate())
198+
debug('invalid message client %s (%s): %o', this.clientId, this.getClientAddress(), (error as any).annotate())
199199
} else {
200200
console.error(`web-socket-adapter: malformed message from client ${this.clientId} (${this.getClientAddress()}):`, error.message)
201201
}

0 commit comments

Comments
 (0)