[or-cvs] [tor/master] don't warn about DirReqStatistics when the option is disabled

Nick Mathewson nickm at seul.org
Thu Jul 23 14:46:08 UTC 2009


Author: Sebastian Hahn <sebastian at torproject.org>
Date: Thu, 23 Jul 2009 13:45:04 +0200
Subject: don't warn about DirReqStatistics when the option is disabled
Commit: 5c0b418a6f7d46b675a6bc91a7fd83cba6889d30

Reported by Zax on #tor
---
 src/or/config.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/config.c b/src/or/config.c
index 1ec666a..46d1470 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -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)
-- 
1.5.6.5



More information about the tor-commits mailing list