From: Andre Noll Date: Sun, 20 Mar 2022 18:48:41 +0000 (+0100) Subject: net: Demote log level of error message in makesock(). X-Git-Tag: v0.7.2~20^2~3 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=05e4b3cc4504b19cdba83bab94c03f5c67c78658;p=paraslash.git 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. --- 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); }