aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-07 17:13:51 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-07 17:13:51 -0500
commit3433216268a97f8c1595fd389da0e960e8074d32 (patch)
tree059f7b25c662162f1015fb5cafd82d2010754d65 /src/or/router.c
parente5b07ba17947ba4782cbac8f12de7024b2969c99 (diff)
parenta7334f5122046b55a5eff425cdaaa3e56c5defed (diff)
downloadtor-3433216268a97f8c1595fd389da0e960e8074d32.tar
tor-3433216268a97f8c1595fd389da0e960e8074d32.tar.gz
Merge remote-tracking branch 'public/easy_ratelim'
Conflicts: src/or/connection.c
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/or/router.c b/src/or/router.c
index b52632c58..3fd8b3c07 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1117,14 +1117,11 @@ consider_testing_reachability(int test_or, int test_dir)
if (test_or || test_dir) {
#define SELF_EXCLUDED_WARN_INTERVAL 3600
static ratelim_t warning_limit=RATELIM_INIT(SELF_EXCLUDED_WARN_INTERVAL);
- char *msg;
- if ((msg = rate_limit_log(&warning_limit, approx_time()))) {
- log_warn(LD_CIRC, "Can't peform self-tests for this relay: we have "
+ log_fn_ratelim(&warning_limit, LOG_WARN, LD_CIRC,
+ "Can't peform self-tests for this relay: we have "
"listed ourself in ExcludeNodes, and StrictNodes is set. "
"We cannot learn whether we are usable, and will not "
- "be able to advertise ourself.%s", msg);
- tor_free(msg);
- }
+ "be able to advertise ourself.");
}
return;
}