Fix a typo in the LearnCircuitBuildTimeout disabled log message

This commit is contained in:
teor 2016-09-05 15:12:48 +10:00 committed by Nick Mathewson
parent c43211fd6c
commit 4d9d2553ba

View File

@ -3468,15 +3468,12 @@ options_validate(or_options_t *old_options, or_options_t *options,
int severity = LOG_NOTICE; int severity = LOG_NOTICE;
/* Be a little quieter if we've deliberately disabled /* Be a little quieter if we've deliberately disabled
* LearnCircuitBuildTimeout. */ * LearnCircuitBuildTimeout. */
if (options->OnionServiceSingleHopMode) { if (circuit_build_times_disabled()) {
severity = LOG_INFO; severity = LOG_INFO;
#ifdef ENABLE_TOR2WEB_MODE
} else if (options->Tor2webMode) {
severity = LOG_INFO;
#endif
} }
log_fn(severity, LD_CONFIG, "You disabled LearnCircuitBuildTimeout, but " log_fn(severity, LD_CONFIG, "You disabled LearnCircuitBuildTimeout, but "
"didn't a CircuitBuildTimeout. I'll pick a plausible default."); "didn't specify a CircuitBuildTimeout. I'll pick a plausible "
"default.");
} }
if (options->PathBiasNoticeRate > 1.0) { if (options->PathBiasNoticeRate > 1.0) {