From 05e4b3cc4504b19cdba83bab94c03f5c67c78658 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 20 Mar 2022 19:48:41 +0100 Subject: [PATCH] net: Demote log level of error message in makesock(). This function has no idea how severe the failure actually is, so log only with loglevel notice and let the callers be more verbose if this is a stern error. The visible result of this change is that audiod no longer prints a warning every five seconds if the server is not running. --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index c4f0312a..96950ae9 100644 --- a/net.c +++ b/net.c @@ -532,7 +532,7 @@ int makesock(unsigned l4type, bool passive, const char *host, uint16_t port_numb if (ai) freeaddrinfo(ai); if (ret < 0) { - PARA_ERROR_LOG("can not create %s socket %s#%d.\n", + PARA_NOTICE_LOG("can not create %s socket %s#%d.\n", layer4_name(l4type), host? host : (passive? "[loopback]" : "[localhost]"), port_number); } -- 2.39.2