From 0d562ffbf5b06d8bb294440150ffcef5e8858ec7 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Fri, 28 Feb 2014 22:13:42 +0200 Subject: [PATCH] core: use opt_incognito in a few more applog() places. --- sgminer.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sgminer.c b/sgminer.c index c19d7f7b..d9b1afa8 100644 --- a/sgminer.c +++ b/sgminer.c @@ -2458,7 +2458,8 @@ share_result(json_t *val, json_t *res, json_t *err, const struct work *work, * This will only happen with the work returned from a * longpoll */ if (unlikely(pool->state == POOL_REJECTING)) { - applog(LOG_WARNING, "Rejecting %s now accepting shares, re-enabling!", pool->poolname); + applog(LOG_WARNING, "Rejecting %s now accepting shares, re-enabling!", + opt_incognito ? "" : pool->poolname); enable_pool(pool); switch_pools(NULL); } @@ -2485,7 +2486,7 @@ share_result(json_t *val, json_t *res, json_t *err, const struct work *work, strcpy(reason, ""); if (total_pools > 1) - snprintf(where, sizeof(where), "%s", work->pool->poolname); + snprintf(where, sizeof(where), "%s", opt_incognito ? "" : work->pool->poolname); else strcpy(where, ""); @@ -2528,7 +2529,8 @@ share_result(json_t *val, json_t *res, json_t *err, const struct work *work, if (pool->seq_rejects > utility * 3) { applog(LOG_WARNING, "%s rejected %d sequential shares, disabling!", - pool->poolname, pool->seq_rejects); + opt_incognito ? "" : pool->poolname, + pool->seq_rejects); reject_pool(pool); if (pool == current_pool()) switch_pools(NULL);