diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-15 20:37:59 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-15 20:37:59 +0000 |
commit | da955df111e7ec8860e1bcfa528b53cfb21391dd (patch) | |
tree | d28056618b9b06a5446a9050033c8b69ff2dde04 /src/or/dirserv.c | |
parent | 516b913d5c8f5903630b1c2d5708ed1ea21ccf9a (diff) | |
download | tor-da955df111e7ec8860e1bcfa528b53cfb21391dd.tar.gz tor-da955df111e7ec8860e1bcfa528b53cfb21391dd.zip |
Add some debugging logs related to dir vote timing.
svn:r11952
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index addb3f4fc3..02277b8718 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1939,6 +1939,7 @@ generate_networkstatus_vote_obj(crypto_pk_env_t *private_key, dirvote_get_preferred_voting_intervals(&timing); v3_out->published = now; { + char tbuf[ISO_TIME_LEN+1]; networkstatus_vote_t *current_consensus = networkstatus_get_live_consensus(now); time_t consensus_interval; @@ -1949,6 +1950,10 @@ generate_networkstatus_vote_obj(crypto_pk_env_t *private_key, consensus_interval = timing.vote_interval; v3_out->valid_after = dirvote_get_start_of_next_interval(now, consensus_interval); + format_iso_time(tbuf, v3_out->valid_after); + log_notice(LD_DIR,"Choosing valid-after time in vote as %s: " + "consensus_set=%d, interval=%d", + tbuf, current_consensus?1:0, consensus_interval); } v3_out->fresh_until = v3_out->valid_after + timing.vote_interval; v3_out->valid_until = v3_out->valid_after + |