Browse Source

Change verbosity and error for getaddrinfo warnings in setup stratum socket.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
cf80fe4a63
  1. 4
      util.c

4
util.c

@ -1505,7 +1505,7 @@ static bool setup_stratum_socket(struct pool *pool) @@ -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) @@ -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;

Loading…
Cancel
Save