From d76ebb79aa2e96664a028dda59f820bf80629128 Mon Sep 17 00:00:00 2001 From: Mike Perry Date: Tue, 1 Jun 2010 22:07:54 -0700 Subject: Improve log message about large timeouts and fix some typos. --- src/or/circuitbuild.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 97e7c1c0f9..e5a9717659 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -335,7 +335,8 @@ int circuit_build_times_add_time(circuit_build_times_t *cbt, build_time_t time) { if (time <= 0 || time > CBT_BUILD_TIME_MAX) { - log_warn(LD_CIRC, "Circuit build time is %u!", time); + log_warn(LD_BUG, "Circuit build time is too large (%u)." + "This is probably a bug.", time); tor_fragile_assert(); return -1; } @@ -1192,7 +1193,7 @@ circuit_build_times_set_timeout(circuit_build_times_t *cbt) if (prev_timeout > tor_lround(cbt->timeout_ms/1000)) { log_notice(LD_CIRC, - "Based on %d cicuit times, it looks like we don't need to " + "Based on %d circuit times, it looks like we don't need to " "wait so long for circuits to finish. We will now assume a " "circuit is too slow to use after waiting %ld seconds.", cbt->total_build_times, @@ -1202,8 +1203,8 @@ circuit_build_times_set_timeout(circuit_build_times_t *cbt) cbt->timeout_ms, cbt->Xm, cbt->alpha, timeout_rate); } else if (prev_timeout < tor_lround(cbt->timeout_ms/1000)) { log_notice(LD_CIRC, - "Based on %d cicuit times, it looks like we need to wait " - "wait longer for circuits to finish. We will now assume a " + "Based on %d circuit times, it looks like we need to wait " + "longer for circuits to finish. We will now assume a " "circuit is too slow to use after waiting %ld seconds.", cbt->total_build_times, tor_lround(cbt->timeout_ms/1000)); -- cgit v1.2.3-54-g00ecf