]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Convert warn to debug
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Aug 2018 00:37:45 +0000 (20:37 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Aug 2018 12:24:16 +0000 (08:24 -0400)
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>
bgpd/bgp_route.c

index 1ded492a20a3594bfd4a3ea93583be27b45edbf4..2a1a0b9c1f5b95ecd75e48baea6e0aa8f417edb5 100644 (file)
@@ -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;
                        }
                }