From: Ian Jackson Date: Sun, 18 Apr 2010 17:17:21 +0000 (+0100) Subject: report to debug changes in nocheck X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=b104e862f8e83fbd5dc28c228b45c0214e1d1417;p=inn-innduct.git report to debug changes in nocheck --- diff --git a/backends/innduct.c b/backends/innduct.c index ac9b943..89e15b6 100644 --- a/backends/innduct.c +++ b/backends/innduct.c @@ -948,11 +948,14 @@ static Article *article_reply_check(Connection *conn, const char *response, static void update_nocheck(int accepted) { accept_proportion *= accept_decay; accept_proportion += accepted; - nocheck= accept_proportion >= nocheck_thresh; - if (nocheck && !nocheck_reported) { + int new_nocheck= accept_proportion >= nocheck_thresh; + if (new_nocheck && !nocheck_reported) { notice("entering nocheck mode for the first time"); nocheck_reported= 1; + } else if (new_nocheck != nockech) { + debug("nocheck mode %s", new_nocheck ? "start" : "stop"); } + nocheck= new_nocheck; } static void article_done(Connection *conn, Article *art, int whichcount) {