aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-08-26 22:16:32 +0000
committerNick Mathewson <nickm@torproject.org>2005-08-26 22:16:32 +0000
commite863771485ef93086543a79b49b5c8af7a1017f2 (patch)
tree7098a722aa41a8f2c18a383074493067ee7515e7 /src
parented070b0fdbc8df99cc564ac94e5af2e661990863 (diff)
downloadtor-e863771485ef93086543a79b49b5c8af7a1017f2.tar
tor-e863771485ef93086543a79b49b5c8af7a1017f2.tar.gz
Log when falling back to nonfast/nonstabl routers
svn:r4869
Diffstat (limited to 'src')
-rw-r--r--src/or/circuitbuild.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 9adc34905..614b211bb 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1168,8 +1168,12 @@ choose_good_exit_server_general(routerlist_t *dir, int need_uptime,
smartlist_t *needed_ports = circuit_get_unhandled_ports(time(NULL));
if (best_support == -1) {
- if (need_uptime || need_capacity)
+ if (need_uptime || need_capacity) {
+ log_fn(LOG_INFO, "We couldn't find any live%s%s routers; falling back to list of all routers",
+ need_capacity?", fast":"",
+ need_uptime?", stable":"");
return choose_good_exit_server_general(dir, 0, 0);
+ }
log(LOG_NOTICE, "All routers are down or middleman -- choosing a doomed exit at random.");
}
for (try = 0; try < 2; try++) {