diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-19 23:04:15 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-19 23:04:15 +0000 |
commit | 856ab90ca8cf6ace5528396049d53e302d1a3ebe (patch) | |
tree | f4ed372c4fbf5869709709bb0c3fe4943b9dbe3e | |
parent | 035c8d1b1cf2d2ff12e6b60c30f2d4e26025aa93 (diff) | |
download | tor-856ab90ca8cf6ace5528396049d53e302d1a3ebe.tar.gz tor-856ab90ca8cf6ace5528396049d53e302d1a3ebe.zip |
stop logging at -l notice every single time a create cell successfully
gets processed
svn:r3791
-rw-r--r-- | src/or/circuitbuild.c | 1 | ||||
-rw-r--r-- | src/or/main.c | 3 | ||||
-rw-r--r-- | src/or/router.c | 10 |
3 files changed, 9 insertions, 5 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 7e01fc3d36..2c9542e99c 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -734,7 +734,6 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key if (!is_local_IP(circ->p_conn->addr)) { /* record that we could process create cells; presumably this means that create cells can reach us too. */ - log_fn(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent."); router_orport_found_reachable(); } diff --git a/src/or/main.c b/src/or/main.c index f0919c225a..4ebace81f1 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -638,9 +638,8 @@ void directory_has_arrived(time_t now, char *identity_digest) { if (identity_digest) { /* if this is us, then our dirport is reachable */ routerinfo_t *router = router_get_by_digest(identity_digest); if (!router) // XXX - log_fn(LOG_WARN,"Roger, router_get_by_digest doesn't find me."); + log_fn(LOG_WARN,"Bug: router_get_by_digest doesn't find me."); if (router && router_is_me(router)) { - log_fn(LOG_NOTICE,"Your DirPort is reachable from the outside. Excellent."); router_dirport_found_reachable(); } } diff --git a/src/or/router.c b/src/or/router.c index e2263eef81..0d158c7eaa 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -399,12 +399,18 @@ void consider_testing_reachability(void) { /** Annotate that we found our ORPort reachable. */ void router_orport_found_reachable(void) { - can_reach_or_port = 1; + if (!can_reach_or_port) { + log_fn(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent."); + can_reach_or_port = 1; + } } /** Annotate that we found our DirPort reachable. */ void router_dirport_found_reachable(void) { - can_reach_dir_port = 1; + if (!can_reach_dir_port) { + log_fn(LOG_NOTICE,"Your DirPort is reachable from the outside. Excellent."); + can_reach_dir_port = 1; + } } /** Our router has just moved to a new IP. Reset stats. */ |