]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
entrynodes: Make routine descriptor expiry notice logs less alarming
authorteor <teor@torproject.org>
Fri, 6 Sep 2019 06:23:58 +0000 (16:23 +1000)
committerteor <teor@torproject.org>
Fri, 6 Sep 2019 06:43:14 +0000 (16:43 +1000)
When tor is missing descriptors for some primary entry guards, make the
log message less alarming. It's normal for descriptors to expire, as long
as tor fetches new ones soon after.

Fixes bug 31657; bugfix on 0.3.3.1-alpha.

changes/bug31657 [new file with mode: 0644]
src/feature/client/entrynodes.c
src/test/test_entrynodes.c

diff --git a/changes/bug31657 b/changes/bug31657
new file mode 100644 (file)
index 0000000..08e9d95
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (guards):
+    - When tor is missing descriptors for some primary entry guards, make the
+      log message less alarming. It's normal for descriptors to expire, as long
+      as tor fetches new ones soon after. Fixes bug 31657;
+      bugfix on 0.3.3.1-alpha.
index 819f90a6d9088fe77de6d19acab21c6115288beb..1bfb62538e32ac1f6bf517142c845cc6b841b68e 100644 (file)
@@ -3765,7 +3765,8 @@ guard_selection_get_err_str_if_dir_info_missing(guard_selection_t *gs,
 
   /* otherwise return a helpful error string */
   tor_asprintf(&ret_str, "We're missing descriptors for %d/%d of our "
-               "primary entry guards (total %sdescriptors: %d/%d).",
+               "primary entry guards (total %sdescriptors: %d/%d). "
+               "That's ok. We will try to fetch missing descriptors soon.",
                n_missing_descriptors, num_primary_to_check,
                using_mds?"micro":"", num_present, num_usable);
 
index 8f0b9600468df51068f342004fbf1485d7e6e3b0..a486b13ae14e3b24ae24009bd51f27bd90e49cb8 100644 (file)
@@ -1723,7 +1723,8 @@ test_entry_guard_manage_primary(void *arg)
     dir_info_str =guard_selection_get_err_str_if_dir_info_missing(gs, 1, 2, 3);
     tt_str_op(dir_info_str, OP_EQ,
               "We're missing descriptors for 1/2 of our primary entry guards "
-              "(total microdescriptors: 2/3).");
+              "(total microdescriptors: 2/3). That's ok. We will try to fetch "
+              "missing descriptors soon.");
     tor_free(dir_info_str);
   }