summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2011-02-11 01:20:47 -0500
committerRoger Dingledine <arma@torproject.org>2011-02-11 01:20:47 -0500
commit9b745cdbf9cd7384e44e18bf40a3d2c9becbc345 (patch)
treed1ea8ed9c5a503f35e155e8c691d4dc3b704d71c /src/or/directory.c
parentd37660d3f366c6749d241623ebce4733279509ee (diff)
parent28de4d83fd59bd656ebcda4442dc10482b8fb00a (diff)
downloadtor-9b745cdbf9cd7384e44e18bf40a3d2c9becbc345.tar.gz
tor-9b745cdbf9cd7384e44e18bf40a3d2c9becbc345.zip
Merge branch 'maint-0.2.1' into maint-0.2.2
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 7360a47e46..f8d587f35c 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1527,9 +1527,10 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
delta>0 ? "ahead" : "behind", dbuf,
delta>0 ? "behind" : "ahead");
skewed = 1; /* don't check the recommended-versions line */
- control_event_general_status(trusted ? LOG_WARN : LOG_NOTICE,
- "CLOCK_SKEW SKEW=%ld SOURCE=DIRSERV:%s:%d",
- delta, conn->_base.address, conn->_base.port);
+ if (trusted)
+ control_event_general_status(LOG_WARN,
+ "CLOCK_SKEW SKEW=%ld SOURCE=DIRSERV:%s:%d",
+ delta, conn->_base.address, conn->_base.port);
} else {
log_debug(LD_HTTP, "Time on received directory is within tolerance; "
"we are %ld seconds skewed. (That's okay.)", delta);