Change DHCP_SYNC_LEASE messages from log_info to log_debug, they result
authorsthen <sthen@openbsd.org>
Sat, 24 Aug 2024 08:35:24 +0000 (08:35 +0000)
committersthen <sthen@openbsd.org>
Sat, 24 Aug 2024 08:35:24 +0000 (08:35 +0000)
in quite a lot of noise in a typical dhcpd sync setup.

From MichaƂ Markowski, ok florian

usr.sbin/dhcpd/sync.c

index 1f701f6..500c645 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sync.c,v 1.24 2022/01/05 11:01:59 tb Exp $    */
+/*     $OpenBSD: sync.c,v 1.25 2024/08/24 08:35:24 sthen Exp $ */
 
 /*
  * Copyright (c) 2008 Bob Beck <beck@openbsd.org>
@@ -307,7 +307,7 @@ sync_recv(void)
                            sizeof(lp->ip_addr));
                        memcpy(&lp->hardware_addr, &lv->lv_hardware_addr,
                            sizeof(lp->hardware_addr));
-                       log_info("DHCP_SYNC_LEASE from %s for hw %s -> ip %s, "
+                       log_debug("DHCP_SYNC_LEASE from %s for hw %s -> ip %s, "
                            "start %lld, end %lld",
                            inet_ntoa(addr.sin_addr),
                            print_hw_addr(lp->hardware_addr.htype,
@@ -431,7 +431,7 @@ sync_lease(struct lease *lease)
        memcpy(&lv.lv_ip_addr, &lease->ip_addr, sizeof(lv.lv_ip_addr));
        memcpy(&lv.lv_hardware_addr, &lease->hardware_addr,
            sizeof(lv.lv_hardware_addr));
-       log_info("sending DHCP_SYNC_LEASE for hw %s -> ip %s, start %d, "
+       log_debug("sending DHCP_SYNC_LEASE for hw %s -> ip %s, start %d, "
            "end %d", print_hw_addr(lv.lv_hardware_addr.htype,
            lv.lv_hardware_addr.hlen, lv.lv_hardware_addr.haddr),
            piaddr(lease->ip_addr), ntohl(lv.lv_starts), ntohl(lv.lv_ends));