Browse Source

log: change log level in setup_stratum_socket().

Erroneously stayed at LOG_ERROR after issue #88 (IIRC).
refactor
Noel Maersk 11 years ago
parent
commit
7051629232
  1. 2
      util.c

2
util.c

@ -2159,7 +2159,7 @@ static bool setup_stratum_socket(struct pool *pool)
ret = getaddrinfo(sockaddr_url, sockaddr_port, hints, &servinfo); ret = getaddrinfo(sockaddr_url, sockaddr_port, hints, &servinfo);
if (ret) { if (ret) {
applog(LOG_ERR, "getaddrinfo() in setup_stratum_socket() returned %i: %s", ret, gai_strerror(ret)); applog(LOG_INFO, "getaddrinfo() in setup_stratum_socket() returned %i: %s", ret, gai_strerror(ret));
if (!pool->probed) { if (!pool->probed) {
applog(LOG_WARNING, "Failed to resolve (wrong URL?) %s:%s", applog(LOG_WARNING, "Failed to resolve (wrong URL?) %s:%s",
sockaddr_url, sockaddr_port); sockaddr_url, sockaddr_port);

Loading…
Cancel
Save