Skip to content

Commit

Permalink
fix(sync_with_origin.go): enhance logging by including peerId in warn…
Browse files Browse the repository at this point in the history
…ing message
  • Loading branch information
chronark committed Sep 25, 2024
1 parent 496a9a0 commit 0728220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/agent/services/ratelimit/sync_with_origin.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (s *service) syncWithOrigin(req syncWithOriginRequest) {
})
if err != nil {
s.peersMu.Lock()
s.logger.Warn().Err(err).Msg("resetting peer client due to error")
s.logger.Warn().Str("peerId", peer.Id).Err(err).Msg("resetting peer client due to error")
delete(s.peers, peer.Id)
s.peersMu.Unlock()
tracing.RecordError(span, err)
Expand Down

0 comments on commit 0728220

Please sign in to comment.