From: Peter Naulls Date: Tue, 24 Jan 2023 19:35:02 +0000 (-0500) Subject: odhcpd: Reduce error messages X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=90d6cc9cd48a333b95604ff90f7ffe67fe14efe3;p=project%2Fodhcpd.git 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 --- 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",