summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-07-02 07:20:57 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-07-02 07:20:57 -0400
commit5a5ff3d8c5d6b27d5c0371a3bbb0113332e2a9f9 (patch)
tree264313ca7c931830f1bd491787c37ea7d471f3aa
parent322abd4fd9ce7e3d60f10e1ef4d343c42d14a9ba (diff)
parent07d8d398ca8961d2d9155a2df9c7ced6b382e73b (diff)
downloadtor-5a5ff3d8c5d6b27d5c0371a3bbb0113332e2a9f9.tar.gz
tor-5a5ff3d8c5d6b27d5c0371a3bbb0113332e2a9f9.zip
Merge branch 'maint-0.4.2' into maint-0.4.3
-rw-r--r--changes/bug160164
-rw-r--r--src/feature/nodelist/routerlist.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/changes/bug16016 b/changes/bug16016
new file mode 100644
index 0000000000..313ef672e9
--- /dev/null
+++ b/changes/bug16016
@@ -0,0 +1,4 @@
+ o Minor bugfixes (logging):
+ - Downgrade a noisy log message that could occur naturally when
+ receiving an extrainfo document that we no longer want.
+ Fixes bug 16016; bugfix on 0.2.6.3-alpha.
diff --git a/src/feature/nodelist/routerlist.c b/src/feature/nodelist/routerlist.c
index 42ce6f4c4e..a0c9db8438 100644
--- a/src/feature/nodelist/routerlist.c
+++ b/src/feature/nodelist/routerlist.c
@@ -1088,7 +1088,11 @@ extrainfo_insert,(routerlist_t *rl, extrainfo_t *ei, int warn_if_incompatible))
* This just won't work. */;
static ratelim_t no_sd_ratelim = RATELIM_INIT(1800);
r = ROUTER_BAD_EI;
- log_fn_ratelim(&no_sd_ratelim, severity, LD_BUG,
+ /* This is a DEBUG because it can happen naturally, if we tried
+ * to add an extrainfo for which we no longer have the
+ * corresponding routerinfo.
+ */
+ log_fn_ratelim(&no_sd_ratelim, LOG_DEBUG, LD_DIR,
"No entry found in extrainfo map.");
goto done;
}