chiark / gitweb /
report to debug changes in nocheck
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 18 Apr 2010 17:17:21 +0000 (18:17 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 18 Apr 2010 17:17:21 +0000 (18:17 +0100)
backends/innduct.c

index ac9b943064fa705a7e929c2dbf7906b60d7118bd..89e15b63f7e2929d18925d7e0df3a13d111b1e89 100644 (file)
@@ -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) {