Browse Source

quiet "I learned some more directory information" on startup

Reserve it for when new directory information arrives in response to
a fetch.

Resolves ticket 6760.
Roger Dingledine 11 years ago
parent
commit
3ea37e5faa
2 changed files with 8 additions and 1 deletions
  1. 6 0
      changes/feature6760
  2. 2 1
      src/or/main.c

+ 6 - 0
changes/feature6760

@@ -0,0 +1,6 @@
+  o Minor features:
+    - Don't log "I learned some more directory information" when we're
+      reading cached directory information. Reserve it for when new
+      directory information arrives in response to a fetch. Resolves
+      ticket 6760.
+

+ 2 - 1
src/or/main.c

@@ -953,7 +953,8 @@ directory_info_has_arrived(time_t now, int from_cache)
   const or_options_t *options = get_options();
 
   if (!router_have_minimum_dir_info()) {
-    int quiet = directory_too_idle_to_fetch_descriptors(options, now);
+    int quiet = from_cache ||
+                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());