net: Demote log level of error message in makesock().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 20 Mar 2022 18:48:41 +0000 (19:48 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 3 Oct 2022 20:53:49 +0000 (22:53 +0200)
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

diff --git a/net.c b/net.c
index c4f0312acd80e810ba619b35bead80bd8578df2a..96950ae932187a1e6c4d0270bad02775efdab2da 100644 (file)
--- 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);
        }