Browse Source

Convert pool not responding and pool alive message on backup pools to verbose level only since they mean a single failed getwork.

Con Kolivas 13 years ago
parent
commit
4039ee7a93
1 changed files with 9 additions and 4 deletions
  1. 9 4
      cgminer.c

+ 9 - 4
cgminer.c

@@ -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)