aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2010-06-01 22:07:54 -0700
committerMike Perry <mikeperry-git@fscked.org>2010-06-09 00:22:13 -0700
commitd76ebb79aa2e96664a028dda59f820bf80629128 (patch)
tree639afe0f3b9a1a4a3a79b243b4de3917dbd80340 /src/or
parentd9be6f38450fd4c20f5c3711e68676547997b23c (diff)
downloadtor-d76ebb79aa2e96664a028dda59f820bf80629128.tar
tor-d76ebb79aa2e96664a028dda59f820bf80629128.tar.gz
Improve log message about large timeouts and fix some typos.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/circuitbuild.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 97e7c1c0f..e5a971765 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));