From be662d93e510d49d051dcedf2eb7d7063f33aaaf Mon Sep 17 00:00:00 2001 From: Rahul Patni Date: Wed, 13 Nov 2024 12:26:49 -0800 Subject: [PATCH] Too many warnings for connection reattempt We can move this to a debug log, as it is not a critical error. --- ironfish/src/network/peers/peer.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ironfish/src/network/peers/peer.ts b/ironfish/src/network/peers/peer.ts index 5889f58516..79035f3805 100644 --- a/ironfish/src/network/peers/peer.ts +++ b/ironfish/src/network/peers/peer.ts @@ -294,7 +294,13 @@ export class Peer { */ setWebSocketConnection(connection: WebSocketConnection): void { if (this.state.type !== 'DISCONNECTED' && this.state.connections.webSocket) { - this.logger.warn('Already have a WebSocket connection, ignoring the new one') + this.logger.debug( + `Peer ${this.displayName} already has a websocket connection to ${ + this.address + }, ignoring new one at ${ + connection.address ? connection.address.host : 'Unknown host' + }`, + ) return }