diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-07 17:13:51 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-07 17:13:51 -0500 |
commit | 3433216268a97f8c1595fd389da0e960e8074d32 (patch) | |
tree | 059f7b25c662162f1015fb5cafd82d2010754d65 /src/or/circuituse.c | |
parent | e5b07ba17947ba4782cbac8f12de7024b2969c99 (diff) | |
parent | a7334f5122046b55a5eff425cdaaa3e56c5defed (diff) | |
download | tor-3433216268a97f8c1595fd389da0e960e8074d32.tar.gz tor-3433216268a97f8c1595fd389da0e960e8074d32.zip |
Merge remote-tracking branch 'public/easy_ratelim'
Conflicts:
src/or/connection.c
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index cfd41be792..c0612039be 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -540,17 +540,13 @@ circuit_expire_building(void) continue; } else { static ratelim_t relax_timeout_limit = RATELIM_INIT(3600); - char *m; - if ((m = rate_limit_log(&relax_timeout_limit, approx_time()))) { - log_notice(LD_CIRC, + log_fn_ratelim(&relax_timeout_limit, LOG_NOTICE, LD_CIRC, "No circuits are opened. Relaxed timeout for " "a circuit with channel state %s to %ldms. " "However, it appears the circuit has timed out anyway. " - "%d guards are live. %s", + "%d guards are live.", channel_state_to_string(victim->n_chan->state), - (long)circ_times.close_ms, num_live_entry_guards(0), m); - tor_free(m); - } + (long)circ_times.close_ms, num_live_entry_guards(0)); } } |