[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Debug logging for router/consensus descriptor download resets



commit 05853485a4a57a3742ff1969640c4f9378091152
Author: Andrea Shepard <andrea@xxxxxxxxxxxxxx>
Date:   Mon Jul 18 15:31:55 2016 +0000

    Debug logging for router/consensus descriptor download resets
---
 src/or/networkstatus.c | 3 +++
 src/or/routerlist.c    | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 0dfb8af..fe4b456 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 f87dbed..d713fe4 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)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits