diff options
author | Roger Dingledine <arma@torproject.org> | 2008-06-05 08:20:23 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-06-05 08:20:23 +0000 |
commit | 2c84c101963aaaa73657648c17a4551a0d5e1ab8 (patch) | |
tree | 291165a6b58221a63a9d8c796b19ad74bd9b4d67 /src/or/networkstatus.c | |
parent | 953ca6d8404cd91acf0706447dffad2285d84767 (diff) | |
download | tor-2c84c101963aaaa73657648c17a4551a0d5e1ab8.tar.gz tor-2c84c101963aaaa73657648c17a4551a0d5e1ab8.zip |
remove some networkstatus consensus warnings for unnamed / invalid
relays. they weren't very specific, and were confusing people before
we reduced their log severity. now nobody even knows they exist.
svn:r14968
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 7537fa27d3..411199ca58 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -55,9 +55,6 @@ static time_t time_to_download_next_consensus = 0; /** Download status for the current consensus networkstatus. */ static download_status_t consensus_dl_status = { 0, 0, DL_SCHED_CONSENSUS }; -/** True iff we have logged a warning about this OR not being valid or - * not being named. */ -static int have_warned_about_invalid_status = 0; /** True iff we have logged a warning about this OR's version being older than * listed by the authorities. */ static int have_warned_about_old_version = 0; @@ -79,7 +76,6 @@ networkstatus_reset_warnings(void) rs->name_lookup_warned = 0); } - have_warned_about_invalid_status = 0; have_warned_about_old_version = 0; have_warned_about_new_version = 0; } @@ -1533,10 +1529,8 @@ networkstatus_note_certs_arrived(void) void routers_update_all_from_networkstatus(time_t now, int dir_version) { - routerinfo_t *me; routerlist_t *rl = router_get_routerlist(); networkstatus_t *consensus = networkstatus_get_live_consensus(now); - or_options_t *options = get_options(); if (networkstatus_v2_list_has_changed) download_status_map_update_from_v2_networkstatus(); @@ -1554,29 +1548,6 @@ routers_update_all_from_networkstatus(time_t now, int dir_version) if (rl->old_routers) signed_descs_update_status_from_consensus_networkstatus(rl->old_routers); - /* XXX020 these warnings don't help anymore; we should disable them -RD */ - me = router_get_my_routerinfo(); - if (me && !have_warned_about_invalid_status) { - routerstatus_t *rs = networkstatus_vote_find_entry(consensus, - me->cache_info.identity_digest); - - if (!rs) { - log_info(LD_GENERAL, "The latest consensus does not list us." - "Are you misconfigured?"); - have_warned_about_invalid_status = 1; - } else if (rs->is_unnamed) { - /* Maybe upgrade this to notice? XXXX020 */ - log_info(LD_GENERAL, "The directory have assigned the nickname " - "you're using (%s) to a different identity; you may want to " - "choose a different nickname.", options->Nickname); - have_warned_about_invalid_status = 1; - } else if (!rs->is_named) { - log_debug(LD_GENERAL, "The directory authorities do not currently " - "recognize your nickname."); - have_warned_about_invalid_status = 1; - } - } - if (!have_warned_about_old_version) { int is_server = server_mode(get_options()); version_status_t status; |