From f0985f997889a06200757cbd02ffe04bf67cd85f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 3 May 2012 16:25:07 +1000 Subject: [PATCH] Only show longpoll warning once when it has failed. --- cgminer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index 6ebfbc41..26259c6e 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3990,8 +3990,9 @@ retry_pool: if (end.tv_sec - start.tv_sec > 30) continue; if (opt_retries == -1 || failures++ < opt_retries) { - applog(LOG_WARNING, - "longpoll failed for %s, sleeping for 30s", pool->lp_url); + if (failures == 1) + applog(LOG_WARNING, + "longpoll failed for %s, retrying every 30s", pool->lp_url); sleep(30); } else { applog(LOG_ERR,