[management] Add more logs to the peer update processes (#2881)

This commit is contained in:
Pascal Fischer
2024-11-12 14:19:22 +01:00
committed by GitHub
parent 6cb697eed6
commit 20a5afc359
6 changed files with 41 additions and 16 deletions

View File

@@ -96,9 +96,12 @@ func (p *PeersUpdateManager) closeChannel(ctx context.Context, peerID string) {
if channel, ok := p.peerChannels[peerID]; ok {
delete(p.peerChannels, peerID)
close(channel)
log.WithContext(ctx).Debugf("closed updates channel of a peer %s", peerID)
return
}
log.WithContext(ctx).Debugf("closed updates channel of a peer %s", peerID)
log.WithContext(ctx).Debugf("closing updates channel: peer %s has no channel", peerID)
}
// CloseChannels closes updates channel for each given peer