|
@@ -1048,11 +1048,11 @@ new_route_len(uint8_t purpose, extend_info_t *exit,
|
|
|
purpose != CIRCUIT_PURPOSE_S_ESTABLISH_INTRO)
|
|
|
routelen++;
|
|
|
|
|
|
- log_debug(LD_CIRC,"Chosen route length %d (%d routers available).",
|
|
|
- routelen, smartlist_len(routers));
|
|
|
-
|
|
|
num_acceptable_routers = count_acceptable_routers(routers);
|
|
|
|
|
|
+ log_debug(LD_CIRC,"Chosen route length %d (%d/%d routers available).",
|
|
|
+ routelen, num_acceptable_routers, smartlist_len(routers));
|
|
|
+
|
|
|
if (num_acceptable_routers < 2) {
|
|
|
log_info(LD_CIRC,
|
|
|
"Not enough acceptable routers (%d). Discarding this circuit.",
|
|
@@ -1965,7 +1965,7 @@ log_entry_guards(int severity)
|
|
|
{
|
|
|
tor_snprintf(buf, sizeof(buf), "%s (%s%s)",
|
|
|
e->nickname,
|
|
|
- e->bad_since ? "down " : "up ",
|
|
|
+ entry_is_live(e, 0, 1, 0) ? "up " : "down ",
|
|
|
e->made_contact ? "made-contact" : "never-contacted");
|
|
|
smartlist_add(elements, tor_strdup(buf));
|
|
|
});
|
|
@@ -2204,7 +2204,7 @@ entry_guards_compute_status(void)
|
|
|
log_info(LD_CIRC, "Summary: Entry '%s' is %s, %s, and %s.",
|
|
|
entry->nickname,
|
|
|
entry->unreachable_since ? "unreachable" : "reachable",
|
|
|
- entry->bad_since ? "unusable: " : "usable",
|
|
|
+ entry->bad_since ? "unusable" : "usable",
|
|
|
entry_is_live(entry, 0, 1, 0) ? "live" : "not live"));
|
|
|
log_info(LD_CIRC, " (%d/%d entry guards are usable/new)",
|
|
|
num_live_entry_guards(), smartlist_len(entry_guards));
|