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)
hints->ai_family = AF_UNSPEC; hints->ai_family = AF_UNSPEC;
hints->ai_socktype = SOCK_STREAM; hints->ai_socktype = SOCK_STREAM;
if (getaddrinfo(pool->sockaddr_url, pool->stratum_port, hints, &servinfo) != 0) { 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); pool->sockaddr_url, pool->stratum_port);
return false; return false;
} }
@ -1526,7 +1526,7 @@ static bool setup_stratum_socket(struct pool *pool)
break; break;
} }
if (p == NULL) { 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); pool->sockaddr_url, pool->stratum_port);
freeaddrinfo(servinfo); freeaddrinfo(servinfo);
return false; return false;

Loading…
Cancel
Save