Skip to content

Commit

Permalink
Cleaned a few messages up after pool naming feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalroth authored and veox committed Jan 22, 2014
1 parent cb174d4 commit 967c757
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3394,10 +3394,10 @@ static void pool_died(struct pool *pool)
if (!pool_tset(pool, &pool->idle)) {
cgtime(&pool->tv_idle);
if (pool == current_pool()) {
applog(LOG_WARNING, "%s %s not responding!", pool->poolname, pool->rpc_url);
applog(LOG_WARNING, "%s not responding!", pool->poolname);
switch_pools(NULL);
} else
applog(LOG_INFO, "%s %s failed to return work", pool->poolname, pool->rpc_url);
applog(LOG_INFO, "%s failed to return work", pool->poolname);
}
}

Expand Down Expand Up @@ -5485,7 +5485,7 @@ static bool pool_active(struct pool *pool, bool pinging)
/* Detect if a http getwork pool has an X-Stratum header at startup,
* and if so, switch to that in preference to getwork if it works */
if (pool->stratum_url && !opt_fix_protocol && stratum_works(pool)) {
applog(LOG_NOTICE, "Switching %s %s to %s", pool->poolname, pool->rpc_url, pool->stratum_url);
applog(LOG_NOTICE, "Switching %s to %s", pool->poolname, pool->stratum_url);
if (!pool->rpc_url)
pool->rpc_url = strdup(pool->stratum_url);
pool->has_stratum = true;
Expand Down Expand Up @@ -6782,7 +6782,7 @@ static void *watchpool_thread(void __maybe_unused *userdata)
* intermittently failing pools from being used. */
if (!pool->idle && pool_strategy == POOL_FAILOVER && pool->prio < cp_prio() &&
now.tv_sec - pool->tv_idle.tv_sec > opt_fail_switch_delay) {
applog(LOG_WARNING, "%s %s stable for %d seconds", pool->poolname, pool->rpc_url, opt_fail_switch_delay);
applog(LOG_WARNING, "%s stable for %d seconds", pool->poolname, opt_fail_switch_delay);
switch_pools(NULL);
}
}
Expand Down

0 comments on commit 967c757

Please sign in to comment.