diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-07-18 15:31:55 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-08-10 03:34:54 +0000 |
commit | 05853485a4a57a3742ff1969640c4f9378091152 (patch) | |
tree | 330a0688333365c8371e872ca8685184c4888ba9 | |
parent | 7e3e482dadf9d2e36299b0395e7d42b99a21c7d2 (diff) | |
download | tor-05853485a4a57a3742ff1969640c4f9378091152.tar.gz tor-05853485a4a57a3742ff1969640c4f9378091152.zip |
Debug logging for router/consensus descriptor download resets
-rw-r--r-- | src/or/networkstatus.c | 3 | ||||
-rw-r--r-- | src/or/routerlist.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 0dfb8afcce..fe4b4562ff 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -147,6 +147,9 @@ networkstatus_reset_download_failures(void) { int i; + log_debug(LD_GENERAL, + "In networkstatus_reset_download_failures()"); + for (i=0; i < N_CONSENSUS_FLAVORS; ++i) download_status_reset(&consensus_dl_status[i]); diff --git a/src/or/routerlist.c b/src/or/routerlist.c index f87dbed145..d713fe4854 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4465,6 +4465,10 @@ void routerlist_retry_directory_downloads(time_t now) { (void)now; + + log_debug(LD_GENERAL, + "In routerlist_retry_directory_downloads()"); + router_reset_status_download_failures(); router_reset_descriptor_download_failures(); reschedule_directory_downloads(); @@ -5277,6 +5281,9 @@ update_extrainfo_downloads(time_t now) void router_reset_descriptor_download_failures(void) { + log_debug(LD_GENERAL, + "In router_reset_descriptor_download_failures()"); + networkstatus_reset_download_failures(); last_descriptor_download_attempted = 0; if (!routerlist) |