]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
when we haven't had any application requests lately, don't bother
authorRoger Dingledine <arma@torproject.org>
Mon, 9 Jun 2008 05:13:33 +0000 (05:13 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 9 Jun 2008 05:13:33 +0000 (05:13 +0000)
logging when we have expired a bunch of descriptors.

svn:r15074

src/or/main.c

index a00a3faf4a42aa771c689e91397f9d4ae32fe3ef..b9c8495cb873a9d419e02c9a9e73a4b74d0b1fee 100644 (file)
@@ -641,7 +641,8 @@ directory_info_has_arrived(time_t now, int from_cache)
   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);