mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
don't warn about DirReqStatistics when the option is disabled
Reported by Zax on #tor
This commit is contained in:
parent
b71bbdc69a
commit
5c0b418a6f
@ -1378,8 +1378,8 @@ options_act(or_options_t *old_options)
|
|||||||
tor_free(actual_fname);
|
tor_free(actual_fname);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_DIRREQ_STATS
|
|
||||||
if (options->DirReqStatistics) {
|
if (options->DirReqStatistics) {
|
||||||
|
#ifdef ENABLE_DIRREQ_STATS
|
||||||
/* Check if GeoIP database could be loaded. */
|
/* Check if GeoIP database could be loaded. */
|
||||||
if (!geoip_is_loaded()) {
|
if (!geoip_is_loaded()) {
|
||||||
log_warn(LD_CONFIG, "Configured to measure directory request "
|
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 "
|
"country and write aggregate statistics to disk. Check the "
|
||||||
"dirreq-stats file in your data directory that will first "
|
"dirreq-stats file in your data directory that will first "
|
||||||
"be written in 24 hours from now.");
|
"be written in 24 hours from now.");
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
log_warn(LD_CONFIG, "DirReqStatistics enabled, but Tor was built "
|
log_warn(LD_CONFIG, "DirReqStatistics enabled, but Tor was built "
|
||||||
"without support for directory request statistics.");
|
"without support for directory request statistics.");
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_EXIT_STATS
|
#ifdef ENABLE_EXIT_STATS
|
||||||
if (options->ExitPortStatistics)
|
if (options->ExitPortStatistics)
|
||||||
|
Loading…
Reference in New Issue
Block a user