aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-07-23 13:45:04 +0200
committerSebastian Hahn <sebastian@torproject.org>2009-07-23 13:50:18 +0200
commit5c0b418a6f7d46b675a6bc91a7fd83cba6889d30 (patch)
treed3c310a29d1629b51b9c9885706e864c4f39be45 /src
parentb71bbdc69a56b4f1cd88816fa08c4ef8c6445a1b (diff)
downloadtor-5c0b418a6f7d46b675a6bc91a7fd83cba6889d30.tar.gz
tor-5c0b418a6f7d46b675a6bc91a7fd83cba6889d30.zip
don't warn about DirReqStatistics when the option is disabled
Reported by Zax on #tor
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 1ec666ad9a..46d147090b 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)