mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Change verbosity and error for getaddrinfo warnings in setup stratum socket.
This commit is contained in:
parent
1a43cb0b17
commit
cf80fe4a63
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…
Reference in New Issue
Block a user