mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
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>
This commit is contained in:
parent
b7cd3069c0
commit
deff24cad5
@ -493,16 +493,18 @@ static int bgp_info_cmp(struct bgp *bgp, struct bgp_info *new,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (newattr->sticky && !existattr->sticky) {
|
if (newattr->sticky && !existattr->sticky) {
|
||||||
zlog_warn(
|
if (debug)
|
||||||
"%s: %s wins over %s due to sticky MAC flag",
|
zlog_debug(
|
||||||
pfx_buf, new_buf, exist_buf);
|
"%s: %s wins over %s due to sticky MAC flag",
|
||||||
|
pfx_buf, new_buf, exist_buf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!newattr->sticky && existattr->sticky) {
|
if (!newattr->sticky && existattr->sticky) {
|
||||||
zlog_warn(
|
if (debug)
|
||||||
"%s: %s loses to %s due to sticky MAC flag",
|
zlog_debug(
|
||||||
pfx_buf, new_buf, exist_buf);
|
"%s: %s loses to %s due to sticky MAC flag",
|
||||||
|
pfx_buf, new_buf, exist_buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user