From 2561295e3ddb2e4be345d41acc627d6a6db50b00 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Fri, 28 Feb 2014 02:10:57 +0200 Subject: [PATCH] log: do not set poolname in log in incognito mode. --- sgminer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sgminer.c b/sgminer.c index 7288afae..44352adc 100644 --- a/sgminer.c +++ b/sgminer.c @@ -755,8 +755,12 @@ static char *set_poolname(char *arg) add_pool(); pool = pools[json_array_index]; - applog(LOG_DEBUG, "Setting pool %i name to %s", pool->pool_no, arg); - opt_set_charp(arg, &pool->poolname); + if (opt_incognito) { + applog(LOG_DEBUG, "Incognito mode requested, not setting pool %i name", pool->pool_no); + } else { + applog(LOG_DEBUG, "Setting pool %i name to %s", pool->pool_no, arg); + opt_set_charp(arg, &pool->poolname); + } return NULL; }