From deff24cad5511425e22fb9cde9cf4638241f8e58 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 15 Aug 2018 20:37:45 -0400 Subject: [PATCH] bgpd: Convert warn to debug There exists a few places where actual debugs were being displayed as warns. Convert them over to debugs and guard as appropriate. Signed-off-by: Donald Sharp --- bgpd/bgp_route.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 1ded492a20..2a1a0b9c1f 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -493,16 +493,18 @@ static int bgp_info_cmp(struct bgp *bgp, struct bgp_info *new, } if (newattr->sticky && !existattr->sticky) { - zlog_warn( - "%s: %s wins over %s due to sticky MAC flag", - pfx_buf, new_buf, exist_buf); + if (debug) + zlog_debug( + "%s: %s wins over %s due to sticky MAC flag", + pfx_buf, new_buf, exist_buf); return 1; } if (!newattr->sticky && existattr->sticky) { - zlog_warn( - "%s: %s loses to %s due to sticky MAC flag", - pfx_buf, new_buf, exist_buf); + if (debug) + zlog_debug( + "%s: %s loses to %s due to sticky MAC flag", + pfx_buf, new_buf, exist_buf); return 0; } }