]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
don't warn about DirReqStatistics when the option is disabled
authorSebastian Hahn <sebastian@torproject.org>
Thu, 23 Jul 2009 11:45:04 +0000 (13:45 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 23 Jul 2009 11:50:18 +0000 (13:50 +0200)
Reported by Zax on #tor

src/or/config.c

index 1ec666ad9a8918a352ab9742c5724d05b9c19f4d..46d147090b0965d8c15e621a74a12335a247fbc3 100644 (file)
@@ -1378,8 +1378,8 @@ options_act(or_options_t *old_options)
     tor_free(actual_fname);
   }
 
-#ifdef ENABLE_DIRREQ_STATS
   if (options->DirReqStatistics) {
+#ifdef ENABLE_DIRREQ_STATS
     /* Check if GeoIP database could be loaded. */
     if (!geoip_is_loaded()) {
       log_warn(LD_CONFIG, "Configured to measure directory request "
@@ -1390,11 +1390,11 @@ options_act(or_options_t *old_options)
                "country and write aggregate statistics to disk. Check the "
                "dirreq-stats file in your data directory that will first "
                "be written in 24 hours from now.");
-  }
 #else
   log_warn(LD_CONFIG, "DirReqStatistics enabled, but Tor was built "
            "without support for directory request statistics.");
 #endif
+  }
 
 #ifdef ENABLE_EXIT_STATS
   if (options->ExitPortStatistics)