From 83d400f251e22e26de571a051cb01c2d3f3e6b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 19 Nov 2024 08:34:43 +0100 Subject: [PATCH] daemon/worker: decrease log level of uv_udp_connect() failure In particular, ENETUNREACH happens on systems without IPv6, and it doesn't make much sense to log about that by default: [io ] Failed to establish udp connection: address not available Introduced in 82e1d596. Also log the IP address. --- daemon/worker.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon/worker.c b/daemon/worker.c index c14f927f8..d517dd6c2 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -838,8 +838,10 @@ static int transmit(struct qr_task *task) do { ret = uv_udp_connect(udp, out_comm.comm_addr); } while (ret == UV_EADDRINUSE && --connect_tries > 0); - if (ret < 0) - kr_log_error(IO, "Failed to establish udp connection: %s\n", uv_strerror(ret)); + if (ret < 0) { + kr_log_info(IO, "Failed to establish udp connection to %s: %s\n", + kr_straddr(out_comm.comm_addr), uv_strerror(ret)); + } } ret = qr_task_send(task, session, &out_comm, task->pktbuf); if (ret) {