Skip to content
Snippets Groups Projects
Commit 0684e6c6 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Merge branch 'bug20963_032' into maint-0.3.2

parents 56b7407a ef55a7a6
No related branches found
No related tags found
No related merge requests found
o Minor features (logging):
- Improve the message we log when re-enabling circuit build timeouts
after having received a consensus. Closes ticket 20963.
......@@ -431,9 +431,14 @@ circuit_build_times_new_consensus_params(circuit_build_times_t *cbt,
if (num > 0) {
if (num != cbt->liveness.num_recent_circs) {
int8_t *recent_circs;
log_notice(LD_CIRC, "The Tor Directory Consensus has changed how many "
"circuits we must track to detect network failures from %d "
"to %d.", cbt->liveness.num_recent_circs, num);
if (cbt->liveness.num_recent_circs > 0) {
log_notice(LD_CIRC, "The Tor Directory Consensus has changed how "
"many circuits we must track to detect network failures "
"from %d to %d.", cbt->liveness.num_recent_circs, num);
} else {
log_notice(LD_CIRC, "Upon receiving a consensus directory, "
"re-enabling circuit-based network failure detection.");
}
tor_assert(cbt->liveness.timeouts_after_firsthop ||
cbt->liveness.num_recent_circs == 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment