summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2024-08-24 08:35:25 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2024-08-24 08:35:25 +0000
commit92f838a5139a54b40d8b18a90d85e7e7db3faa65 (patch)
treed3a0e1ef06d392aa951a3cb00b25d1be0c2db603
parent4ccf83f6d7d5768c9a4954e910911c63594ce5a3 (diff)
Change DHCP_SYNC_LEASE messages from log_info to log_debug, they result
in quite a lot of noise in a typical dhcpd sync setup. From Michał Markowski, ok florian
-rw-r--r--usr.sbin/dhcpd/sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/sync.c b/usr.sbin/dhcpd/sync.c
index 1f701f60d46..500c6456634 100644
--- a/usr.sbin/dhcpd/sync.c
+++ b/usr.sbin/dhcpd/sync.c
@@ -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));