diff options
author | Roger Dingledine <arma@torproject.org> | 2010-04-20 18:02:23 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2010-04-20 18:02:23 -0400 |
commit | 92a6ae2b8d89fced574efed125275ebf501d09b6 (patch) | |
tree | 866add7db8e51a782a9cd777f2524ef14fe51593 | |
parent | 2c1900ee5ea09faa530b19d0245a34920b2a7c81 (diff) | |
download | tor-92a6ae2b8d89fced574efed125275ebf501d09b6.tar.gz tor-92a6ae2b8d89fced574efed125275ebf501d09b6.zip |
more logging when tracking missing descriptors
-rw-r--r-- | src/or/routerlist.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 3292429e5c..637163a754 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4403,12 +4403,16 @@ update_consensus_router_descriptor_downloads(time_t now, int is_vote, continue; /* We would never use it ourself. */ } if (is_vote && source) { - char time_buf[ISO_TIME_LEN+1]; - format_iso_time(time_buf, rs->published_on); - log_info(LD_DIR, "Learned about %s (%s) from %s's vote (%s)", - rs->nickname, time_buf, source->nickname, - router_get_by_digest(rs->identity_digest) ? "known" : - "unknown"); + char time_bufnew[ISO_TIME_LEN+1]; + char time_bufold[ISO_TIME_LEN+1]; + routerinfo_t *oldrouter = router_get_by_digest(rs->identity_digest); + format_iso_time(time_bufnew, rs->published_on); + if (oldrouter) + format_iso_time(time_bufold, oldrouter->cache_info.published_on); + log_info(LD_DIR, "Learned about %s (%s vs %s) from %s's vote (%s)", + rs->nickname, time_bufnew, + oldrouter ? time_bufold : "none", + source->nickname, oldrouter ? "known" : "unknown"); } smartlist_add(downloadable, rs->descriptor_digest); }); |