Skip to content

Commit

Permalink
Too many warnings for connection reattempt (#5649)
Browse files Browse the repository at this point in the history
We can move this to a debug log, as it is not a critical error.
  • Loading branch information
patnir authored Nov 25, 2024
1 parent 117d9ab commit 750cdf1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ironfish/src/network/peers/peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 750cdf1

Please sign in to comment.