Browse Source

Show a different warning and loglevel for failure to resolve a URL on first or subsequent testing of stratum pool URLs.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
3972fe223b
  1. 7
      util.c

7
util.c

@ -1522,8 +1522,13 @@ static bool setup_stratum_socket(struct pool *pool) @@ -1522,8 +1522,13 @@ 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 (?wrong URL) on %s:%s",
if (!pool->probed) {
applog(LOG_WARNING, "Failed to resolve (?wrong URL) %s:%s",
pool->sockaddr_url, pool->stratum_port);
} else {
applog(LOG_INFO, "Failed to getaddrinfo for %s:%s",
pool->sockaddr_url, pool->stratum_port);
}
return false;
}

Loading…
Cancel
Save