mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Convert pool not responding and pool alive message on backup pools to verbose level only since they mean a single failed getwork.
This commit is contained in:
parent
52b86b5137
commit
4039ee7a93
13
cgminer.c
13
cgminer.c
@ -2986,9 +2986,12 @@ static bool queue_request(void);
|
||||
static void pool_died(struct pool *pool)
|
||||
{
|
||||
if (!pool_tset(pool, &pool->idle)) {
|
||||
applog(LOG_WARNING, "Pool %d %s not responding!", pool->pool_no, pool->rpc_url);
|
||||
gettimeofday(&pool->tv_idle, NULL);
|
||||
switch_pools(NULL);
|
||||
if (pool == current_pool()) {
|
||||
applog(LOG_WARNING, "Pool %d %s not responding!", pool->pool_no, pool->rpc_url);
|
||||
switch_pools(NULL);
|
||||
} else
|
||||
applog(LOG_INFO, "Pool %d %s failed to return work", pool->pool_no, pool->rpc_url);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4932,9 +4935,11 @@ static inline int cp_prio(void)
|
||||
|
||||
static void pool_resus(struct pool *pool)
|
||||
{
|
||||
applog(LOG_WARNING, "Pool %d %s alive", pool->pool_no, pool->rpc_url);
|
||||
if (pool->prio < cp_prio() && pool_strategy == POOL_FAILOVER)
|
||||
if (pool->prio < cp_prio() && pool_strategy == POOL_FAILOVER) {
|
||||
applog(LOG_WARNING, "Pool %d %s alive", pool->pool_no, pool->rpc_url);
|
||||
switch_pools(NULL);
|
||||
} else
|
||||
applog(LOG_INFO, "Pool %d %s resumed returning work", pool->pool_no, pool->rpc_url);
|
||||
}
|
||||
|
||||
static bool queue_request(void)
|
||||
|
Loading…
Reference in New Issue
Block a user