From 31e6f1a8e9a1170f8440ec70bcbdff9338229fd1 Mon Sep 17 00:00:00 2001 From: sthen Date: Sat, 24 Aug 2024 08:35:24 +0000 Subject: [PATCH] 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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit From Michał Markowski, ok florian --- usr.sbin/dhcpd/sync.c | 6 +++--- 1 file 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 @@ -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)); -- 2.20.1