summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2022-06-15 14:13:09 +0000
committerMike Perry <mikeperry-git@torproject.org>2022-06-15 14:13:09 +0000
commite41b680f50e6f49b7167262281fbedf55a5ce8b4 (patch)
tree09d26639fae15dd7efc817983cb66e73ebaf32ee
parentdc7902ed55cb6c955590c976e6aef82ecce98170 (diff)
downloadtor-e41b680f50e6f49b7167262281fbedf55a5ce8b4.tar.gz
tor-e41b680f50e6f49b7167262281fbedf55a5ce8b4.zip
Demote a warning about finding hops in path if no dir info.
Leave it at notice if we do have enough dir info.
-rw-r--r--src/core/or/circuitbuild.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/core/or/circuitbuild.c b/src/core/or/circuitbuild.c
index 8027a96565..337bcfdd53 100644
--- a/src/core/or/circuitbuild.c
+++ b/src/core/or/circuitbuild.c
@@ -2520,8 +2520,19 @@ onion_extend_cpath(origin_circuit_t *circ)
}
if (!info) {
- log_warn(LD_CIRC,"Failed to find node for hop #%d of our path. Discarding "
- "this circuit.", cur_len+1);
+ /* This can happen on first startup, possibly due to insufficient relays
+ * downloaded to pick vanguards-lite layer2 nodes, or other ephemeral
+ * reasons. It only happens briefly, is hard to reproduce, and then goes
+ * away for ever. :/ */
+ if (!router_have_minimum_dir_info()) {
+ log_info(LD_CIRC,
+ "Failed to find node for hop #%d of our path. Discarding "
+ "this circuit.", cur_len+1);
+ } else {
+ log_notice(LD_CIRC,
+ "Failed to find node for hop #%d of our path. Discarding "
+ "this circuit.", cur_len+1);
+ }
return -1;
}