Change verbosity and error for getaddrinfo warnings in setup stratum socket.
diff --git a/util.c b/util.c
index 5810f94..091b4ea 100644
--- a/util.c
+++ b/util.c
@@ -1505,7 +1505,7 @@ static bool setup_stratum_socket(struct pool *pool)
hints->ai_family = AF_UNSPEC;
hints->ai_socktype = SOCK_STREAM;
if (getaddrinfo(pool->sockaddr_url, pool->stratum_port, hints, &servinfo) != 0) {
- applog(LOG_WARNING, "Failed to getaddrinfo on %s:%s",
+ applog(LOG_WARNING, "Failed to getaddrinfo (?wrong URL) on %s:%s",
pool->sockaddr_url, pool->stratum_port);
return false;
}
@@ -1526,7 +1526,7 @@ static bool setup_stratum_socket(struct pool *pool)
break;
}
if (p == NULL) {
- applog(LOG_WARNING, "Failed to find servinfo on %s:%s",
+ applog(LOG_INFO, "Failed to find a stratum servinfo on %s:%s",
pool->sockaddr_url, pool->stratum_port);
freeaddrinfo(servinfo);
return false;