]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
relay: Avoid extra LOG_NOTICE for every new descriptor batch
authorDavid Goulet <dgoulet@torproject.org>
Thu, 16 Nov 2017 15:51:41 +0000 (10:51 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Thu, 16 Nov 2017 15:57:05 +0000 (10:57 -0500)
Commit 56c5e282a733912776f6dacbe4f5df66b4fb9606 suppressed that same log
statement in directory_info_has_arrived() for microdescriptors so do the same
for the descriptors. As the commit says, we already have the bootstrap
progress for this.

Fixes #23861

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/bug23861 [new file with mode: 0644]
src/or/directory.c

diff --git a/changes/bug23861 b/changes/bug23861
new file mode 100644 (file)
index 0000000..c6f0176
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (logging, relay):
+    - Suppress a log notice when relay descriptors arrive. We already have a
+      bootstrap progress for this so no need to log notice everytime tor
+      receives relay descriptors. Microdescriptors behave the same. Fixes bug
+      23861; bugfix on 0.2.8.2-alpha.
index 836f86298897c2ce522b78e5c2c13504ca4bbd4a..b3dbb0d1e06892d647b0d6e2078f686f38666248 100644 (file)
@@ -2889,7 +2889,7 @@ handle_response_fetch_desc(dir_connection_t *conn,
                                   conn->router_purpose,
                                   conn->base_.address)) {
         time_t now = approx_time();
-        directory_info_has_arrived(now, 0, 0);
+        directory_info_has_arrived(now, 0, 1);
       }
     }
   }