mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
patch from karsten to make vote logs more useful
svn:r13260
This commit is contained in:
parent
ba7a37cf94
commit
aca8d8fc03
@ -1552,8 +1552,8 @@ dirvote_add_vote(const char *vote_body, const char **msg_out, int *status_out)
|
|||||||
char tbuf1[ISO_TIME_LEN+1], tbuf2[ISO_TIME_LEN+1];
|
char tbuf1[ISO_TIME_LEN+1], tbuf2[ISO_TIME_LEN+1];
|
||||||
format_iso_time(tbuf1, vote->valid_after);
|
format_iso_time(tbuf1, vote->valid_after);
|
||||||
format_iso_time(tbuf2, voting_schedule.interval_starts);
|
format_iso_time(tbuf2, voting_schedule.interval_starts);
|
||||||
log_warn(LD_DIR, "Rejecting vote with valid-after time of %s; we were "
|
log_warn(LD_DIR, "Rejecting vote from %s with valid-after time of %s; "
|
||||||
"expecting %s", tbuf1, tbuf2);
|
"we were expecting %s", vi->address, tbuf1, tbuf2);
|
||||||
*msg_out = "Bad valid-after time";
|
*msg_out = "Bad valid-after time";
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user