From 3d2ef17364ec7fae9e6637fe139676ffd48bf0b7 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Wed, 24 Jul 2024 23:46:05 +0200 Subject: [PATCH] Fix sonar issue --- client/internal/peer/conn.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/internal/peer/conn.go b/client/internal/peer/conn.go index 4610afba2..65c9bf7b7 100644 --- a/client/internal/peer/conn.go +++ b/client/internal/peer/conn.go @@ -523,7 +523,7 @@ func (conn *Conn) onWorkerICEStateDisconnected(newState ConnStatus) { err := conn.statusRecorder.UpdatePeerICEStateToDisconnected(peerState) if err != nil { - conn.log.Warnf("unable to save peer's state, got error: %v", err) + conn.log.Warnf("unable to set peer's state to disconnected ice, got error: %v", err) } } @@ -613,7 +613,7 @@ func (conn *Conn) onWorkerRelayStateDisconnected() { err := conn.statusRecorder.UpdatePeerRelayedStateToDisconnected(peerState) if err != nil { - conn.log.Warnf("unable to save peer's state, got error: %v", err) + conn.log.Warnf("unable to save peer's state to Relay disconnected, got error: %v", err) } } @@ -639,7 +639,7 @@ func (conn *Conn) updateRelayStatus(relayServerAddr string, rosenpassPubKey []by err := conn.statusRecorder.UpdatePeerRelayedState(peerState) if err != nil { - conn.log.Warnf("unable to save peer's state, got error: %v", err) + conn.log.Warnf("unable to save peer's Relay state, got error: %v", err) } } @@ -658,7 +658,7 @@ func (conn *Conn) updateIceState(iceConnInfo ICEConnInfo) { err := conn.statusRecorder.UpdatePeerICEState(peerState) if err != nil { - conn.log.Warnf("unable to save peer's state, got error: %v", err) + conn.log.Warnf("unable to save peer's ICE state, got error: %v", err) } }