Skip to content

Commit

Permalink
bgpv1: Downgrade peer state transition logs to Debug
Browse files Browse the repository at this point in the history
Users can now easily check the current peering state with `cilium bgp
peers` command. Thus state transition logs become relatively unimportant
for users. Downgrade the logs to debug level.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
  • Loading branch information
YutaroHayakawa authored and ti-mo committed Feb 22, 2024
1 parent 4baab3d commit 148f81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bgpv1/gobgp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func NewGoBGPServer(ctx context.Context, log *logrus.Entry, params types.ServerP
}
err := s.WatchEvent(ctx, watchRequest, func(r *gobgp.WatchEventResponse) {
if p := r.GetPeer(); p != nil && p.Type == gobgp.WatchEventResponse_PeerEvent_STATE {
logger.l.Info(p)
logger.l.Debug(p)
}
})
if err != nil {
Expand Down

0 comments on commit 148f81f

Please sign in to comment.