[or-cvs] r15074: when we haven't had any application requests lately, don't b (tor/trunk/src/or)

arma at seul.org arma at seul.org
Mon Jun 9 05:13:33 UTC 2008


Author: arma
Date: 2008-06-09 01:13:33 -0400 (Mon, 09 Jun 2008)
New Revision: 15074

Modified:
   tor/trunk/src/or/main.c
Log:
when we haven't had any application requests lately, don't bother
logging when we have expired a bunch of descriptors.


Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c	2008-06-09 05:12:04 UTC (rev 15073)
+++ tor/trunk/src/or/main.c	2008-06-09 05:13:33 UTC (rev 15074)
@@ -641,7 +641,8 @@
   or_options_t *options = get_options();
 
   if (!router_have_minimum_dir_info()) {
-    log(LOG_NOTICE, LD_DIR,
+    quiet = directory_too_idle_to_fetch_descriptors(options, now);
+    log(quiet ? LOG_INFO : LOG_NOTICE, LD_DIR,
         "I learned some more directory information, but not enough to "
         "build a circuit: %s", get_dir_info_status_string());
     update_router_descriptor_downloads(now);



More information about the tor-commits mailing list