aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dirvote.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-02-19 11:15:20 +1000
committerNick Mathewson <nickm@torproject.org>2020-02-20 08:17:37 -0500
commitbed3b292ad007fa0b059dc998403cac093c64920 (patch)
tree06a21d4f041dc14a9c0a7f8f1031b69ac6b88198 /src/feature/dirauth/dirvote.c
parent15192f88c0fbbc71ac9a9de5f793520f888d2f48 (diff)
downloadtor-bed3b292ad007fa0b059dc998403cac093c64920.tar.gz
tor-bed3b292ad007fa0b059dc998403cac093c64920.zip
dirvote: Improve the posted vote log message
Cleanup after 4631.
Diffstat (limited to 'src/feature/dirauth/dirvote.c')
-rw-r--r--src/feature/dirauth/dirvote.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
index 66bb8fe918..90e82a4ee8 100644
--- a/src/feature/dirauth/dirvote.c
+++ b/src/feature/dirauth/dirvote.c
@@ -3223,9 +3223,11 @@ dirvote_add_vote(const char *vote_body, time_t time_posted,
char tbuf1[ISO_TIME_LEN+1], tbuf2[ISO_TIME_LEN+1];
format_iso_time(tbuf1, time_posted);
format_iso_time(tbuf2, voting_schedule.fetch_missing_votes);
- log_warn(LD_DIR, "Rejecting vote from %s received at %s; "
- "our cutoff for received votes is %s", vi->address, tbuf1, tbuf2);
- *msg_out = "Vote received too late, would be dangerous to count it";
+ log_warn(LD_DIR, "Rejecting posted vote from %s received at %s; "
+ "our cutoff for received votes is %s. Check your clock, "
+ "CPU load, and network load. Also check the authority that "
+ "posted the vote.", vi->address, tbuf1, tbuf2);
+ *msg_out = "Posted vote received too late, would be dangerous to count it";
goto err;
}