diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-15 14:42:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-11-15 14:42:59 -0500 |
commit | ef55a7a69a131e50cce9702064399549bb4d63bc (patch) | |
tree | 79830f0acbf5fec460c879f9a17053ea2ba70139 /src/or/circuitstats.c | |
parent | ae8683621add4b7fe68ba82f76b231ef8551477f (diff) | |
download | tor-ef55a7a69a131e50cce9702064399549bb4d63bc.tar.gz tor-ef55a7a69a131e50cce9702064399549bb4d63bc.zip |
Tweak the message when we re-enable CBT.
Implements ticket 20963.
Diffstat (limited to 'src/or/circuitstats.c')
-rw-r--r-- | src/or/circuitstats.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/or/circuitstats.c b/src/or/circuitstats.c index 923a6d794f..b8421a3c7e 100644 --- a/src/or/circuitstats.c +++ b/src/or/circuitstats.c @@ -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); |