summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPeter Naulls <peter@chocky.org>2023-01-24 14:35:02 -0500
committerChristian Marangi <ansuelsmth@gmail.com>2023-03-14 22:51:28 +0100
commit90d6cc9cd48a333b95604ff90f7ffe67fe14efe3 (patch)
treeeecbaebb50af5f391f8c5079cda4e0d0afb18fee /src
parentedc5e1738682e764e64bcbffde1e0a1cc9feac21 (diff)
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 <peter@chocky.org>
Diffstat (limited to 'src')
-rw-r--r--src/odhcpd.c2
1 files changed, 1 insertions, 1 deletions
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",