]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: Do not always debug joining AllDRouters Multicast group
authorDonald Sharp <sharpd@nvidia.com>
Mon, 28 Nov 2022 13:53:20 +0000 (08:53 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 28 Nov 2022 13:53:20 +0000 (08:53 -0500)
My log file is filling up with:
2022-11-26 13:24:47.532 [DEBG] ospfd: [RY794-DQ7AK] interface 192.168.119.229 [2] join AllDRouters Multicast group.

Every 1/2 hour.  There is nothing an operator needs to do here and nothing
that they can change.  Let's guard this output.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospfd/ospf_network.c

index be06afe532620e162dbde3d4bc82809ce34df9ae..a8c9493ec8e4d910933c534242f5ca6df50b0d44 100644 (file)
@@ -104,11 +104,12 @@ int ospf_if_add_alldrouters(struct ospf *top, struct prefix *p,
                        "can't setsockopt IP_ADD_MEMBERSHIP (fd %d, addr %pI4, ifindex %u, AllDRouters): %s; perhaps a kernel limit on # of multicast group memberships has been exceeded?",
                        top->fd, &p->u.prefix4, ifindex,
                        safe_strerror(errno));
-       else
-               zlog_debug(
-                       "interface %pI4 [%u] join AllDRouters Multicast group.",
-                       &p->u.prefix4, ifindex);
-
+       else {
+               if (IS_DEBUG_OSPF_EVENT)
+                       zlog_debug(
+                               "interface %pI4 [%u] join AllDRouters Multicast group.",
+                               &p->u.prefix4, ifindex);
+       }
        return ret;
 }