[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Log when falling back to nonfast/nonstabl routers



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv9896/src/or

Modified Files:
	circuitbuild.c 
Log Message:
Log when falling back to nonfast/nonstabl routers

Index: circuitbuild.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -d -r1.138 -r1.139
--- circuitbuild.c	26 Aug 2005 22:10:22 -0000	1.138
+++ circuitbuild.c	26 Aug 2005 22:16:32 -0000	1.139
@@ -1168,8 +1168,12 @@
     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++) {