From b104e862f8e83fbd5dc28c228b45c0214e1d1417 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 18 Apr 2010 18:17:21 +0100 Subject: [PATCH] report to debug changes in nocheck --- backends/innduct.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) { -- 2.30.2