From 90d6cc9cd48a333b95604ff90f7ffe67fe14efe3 Mon Sep 17 00:00:00 2001 From: Peter Naulls Date: Tue, 24 Jan 2023 14:35:02 -0500 Subject: odhcpd: Reduce error messages When there's no network cable connected to LAN, then odhcpd does this: Tue Jan 24 18:32:04 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Tue Jan 24 18:32:20 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Tue Jan 24 18:32:36 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Tue Jan 24 18:32:52 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Accurate, but not very interesting. I think this would be better served as debug. Signed-off-by: Peter Naulls --- src/odhcpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odhcpd.c b/src/odhcpd.c index 554e5f1..1f2567e 100644 --- a/src/odhcpd.c +++ b/src/odhcpd.c @@ -219,7 +219,7 @@ ssize_t odhcpd_send(int socket, struct sockaddr_in6 *dest, ssize_t sent = sendmsg(socket, &msg, MSG_DONTWAIT); if (sent < 0) - syslog(LOG_ERR, "Failed to send to %s%%%s@%s (%m)", + syslog(LOG_DEBUG, "Failed to send to %s%%%s@%s (%m)", ipbuf, iface->name, iface->ifname); else syslog(LOG_DEBUG, "Sent %zd bytes to %s%%%s@%s", -- cgit v1.2.3