summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ism.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-11-28 14:57:38 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-11-28 14:57:38 +0100
commit7b7ca2d31938c6420c9fc795592fcef9811c6bbe (patch)
tree80b3655c6661465116c775a2abc27cc3d02f633e /ospfd/ospf_ism.c
parentospfd: Do not always debug joining AllDRouters Multicast group (diff)
downloadfrr-7b7ca2d31938c6420c9fc795592fcef9811c6bbe.tar.xz
frr-7b7ca2d31938c6420c9fc795592fcef9811c6bbe.zip
ospfd: Do not auto-debug DR-Election notifications
Every 1/2 hour my logs are filling up with this: 2022-11-26 13:54:47.531 [DEBG] ospfd: [P4PQ9-K4XFD] DR-Election[1st]: Backup 192.168.119.229 2022-11-26 13:54:47.531 [DEBG] ospfd: [HBZ7F-65Y86] DR-Election[1st]: DR 192.168.119.229 2022-11-26 13:54:47.531 [DEBG] ospfd: [H01MF-RN00N] DR-Election[2nd]: Backup 0.0.0.0 2022-11-26 13:54:47.531 [DEBG] ospfd: [R7BJ4-KP8JT] DR-Election[2nd]: DR 192.168.119.229 This should be guarded by an if check to ensure that the operator really wants to see this. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_ism.c')
-rw-r--r--ospfd/ospf_ism.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/ospfd/ospf_ism.c b/ospfd/ospf_ism.c
index ab75ab9a1..d4565b665 100644
--- a/ospfd/ospf_ism.c
+++ b/ospfd/ospf_ism.c
@@ -223,8 +223,10 @@ int ospf_dr_election(struct ospf_interface *oi)
new_state = ospf_ism_state(oi);
- zlog_debug("DR-Election[1st]: Backup %pI4", &BDR(oi));
- zlog_debug("DR-Election[1st]: DR %pI4", &DR(oi));
+ if (IS_DEBUG_OSPF(ism, ISM_STATUS)) {
+ zlog_debug("DR-Election[1st]: Backup %pI4", &BDR(oi));
+ zlog_debug("DR-Election[1st]: DR %pI4", &DR(oi));
+ }
if (new_state != old_state
&& !(new_state == ISM_DROther && old_state < ISM_DROther)) {
@@ -233,8 +235,10 @@ int ospf_dr_election(struct ospf_interface *oi)
new_state = ospf_ism_state(oi);
- zlog_debug("DR-Election[2nd]: Backup %pI4", &BDR(oi));
- zlog_debug("DR-Election[2nd]: DR %pI4", &DR(oi));
+ if (IS_DEBUG_OSPF(ism, ISM_STATUS)) {
+ zlog_debug("DR-Election[2nd]: Backup %pI4", &BDR(oi));
+ zlog_debug("DR-Election[2nd]: DR %pI4", &DR(oi));
+ }
}
list_delete(&el_list);