Remove peer state change logging

Silently ignore RIS_PEER_STATE and STATE messages instead of logging them.
Also fixed linter issues with directory permissions.
This commit is contained in:
2025-07-27 21:26:08 +02:00
parent 92f7527cc5
commit 14e85f042b
2 changed files with 55 additions and 11 deletions

View File

@@ -253,10 +253,7 @@ func (s *Streamer) stream(ctx context.Context) error {
// Process BGP UPDATE messages
// Will be handled by registered handlers
case "RIS_PEER_STATE":
s.logger.Info("RIS peer state change",
"peer", msg.Peer,
"peer_asn", msg.PeerASN,
)
// RIS peer state messages - silently ignore
case "KEEPALIVE":
// BGP keepalive messages - just log at debug level
s.logger.Debug("BGP keepalive",
@@ -276,11 +273,7 @@ func (s *Streamer) stream(ctx context.Context) error {
"peer_asn", msg.PeerASN,
)
case "STATE":
// Peer state changes
s.logger.Info("Peer state change",
"peer", msg.Peer,
"peer_asn", msg.PeerASN,
)
// Peer state changes - silently ignore
default:
fmt.Fprintf(
os.Stderr,