1
0
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:
Con Kolivas 2012-11-18 16:53:39 +11:00
parent 52b86b5137
commit 4039ee7a93

View File

@ -2986,9 +2986,12 @@ static bool queue_request(void);
static void pool_died(struct pool *pool) static void pool_died(struct pool *pool)
{ {
if (!pool_tset(pool, &pool->idle)) { 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); 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) 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); switch_pools(NULL);
} else
applog(LOG_INFO, "Pool %d %s resumed returning work", pool->pool_no, pool->rpc_url);
} }
static bool queue_request(void) static bool queue_request(void)