]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Log which votes we still need to fetch
authorSebastian Hahn <sebastian@torproject.org>
Tue, 10 Jan 2012 15:12:22 +0000 (16:12 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 10 Jan 2012 15:13:30 +0000 (16:13 +0100)
This might help us see which authorities are problematic in getting
their vote published the first time.

changes/dirauth_log [new file with mode: 0644]
src/or/dirvote.c

diff --git a/changes/dirauth_log b/changes/dirauth_log
new file mode 100644 (file)
index 0000000..df82314
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor features:
+    - Log which authority we're missing votes from when we go to fetch them
+      from the other auths.
index 28433366e225d5fd7698b45f22c4d8895d8e30d9..3bb165aeea9ed663c48db6394f853d1e0b946df1 100644 (file)
@@ -2801,8 +2801,13 @@ dirvote_fetch_missing_votes(void)
     smartlist_free(missing_fps);
     return;
   }
-  log_notice(LOG_NOTICE, "We're missing votes from %d authorities. Asking "
-             "every other authority for a copy.", smartlist_len(missing_fps));
+  {
+    char *tmp = smartlist_join_strings(missing_fps, " ", 0, NULL);
+    log_notice(LOG_NOTICE, "We're missing votes from %d authorities (%s). "
+               "Asking every other authority for a copy.",
+               smartlist_len(missing_fps), tmp);
+    tor_free(tmp);
+  }
   resource = smartlist_join_strings(missing_fps, "+", 0, NULL);
   directory_get_from_all_authorities(DIR_PURPOSE_FETCH_STATUS_VOTE,
                                      0, resource);