Skip to content
Permalink
Browse files

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 <sharpd@cumulsunetworks.com>
  • Loading branch information...
donaldsharp committed Aug 16, 2018
1 parent b7cd306 commit deff24cad5511425e22fb9cde9cf4638241f8e58
Showing with 8 additions and 6 deletions.
  1. +8 −6 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;
}
}

0 comments on commit deff24c

Please sign in to comment.
You can’t perform that action at this time.