summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-02-22 14:17:11 -0500
committerNick Mathewson <nickm@torproject.org>2011-02-22 14:17:11 -0500
commit2eadbd41f0d0356898c75d7fab032109a85bc9e9 (patch)
tree0ac59d0ac72ba70cef13438744568355405a461a /src/or/config.c
parentb7f201f74606aff1f77551449bebe8783a59733a (diff)
parent7736f44698798111be413ca3285a77ce1e4d6b0c (diff)
downloadtor-2eadbd41f0d0356898c75d7fab032109a85bc9e9.tar.gz
tor-2eadbd41f0d0356898c75d7fab032109a85bc9e9.zip
Merge remote branch 'sebastian/bug2496'
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 97a2b32451..aa4d9743b2 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1390,10 +1390,12 @@ options_act(or_options_t *old_options)
print_notice = 1;
} else {
options->DirReqStatistics = 0;
- log_notice(LD_CONFIG, "Configured to measure directory request "
- "statistics, but no GeoIP database found! "
- "Please specify a GeoIP database using the "
- "GeoIPFile option!");
+ /* Don't warn Tor clients, they don't use statistics */
+ if (options->ORPort)
+ log_notice(LD_CONFIG, "Configured to measure directory request "
+ "statistics, but no GeoIP database found. "
+ "Please specify a GeoIP database using the "
+ "GeoIPFile option.");
}
}
if ((!old_options || !old_options->EntryStatistics) &&
@@ -1404,9 +1406,9 @@ options_act(or_options_t *old_options)
} else {
options->EntryStatistics = 0;
log_notice(LD_CONFIG, "Configured to measure entry node "
- "statistics, but no GeoIP database found! "
+ "statistics, but no GeoIP database found. "
"Please specify a GeoIP database using the "
- "GeoIPFile option!");
+ "GeoIPFile option.");
}
}
if ((!old_options || !old_options->ExitPortStatistics) &&