aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-02-21 06:23:57 +0000
committerRoger Dingledine <arma@torproject.org>2006-02-21 06:23:57 +0000
commit25ed4b66e304571f0a94618db9ad8cb62474143a (patch)
treed2e120cafd16b84af5c57c5c70875088f86c3c7f
parent6a7d2bf94e63f2e1bc0d76933ca45fee66a1d0bb (diff)
downloadtor-25ed4b66e304571f0a94618db9ad8cb62474143a.tar
tor-25ed4b66e304571f0a94618db9ad8cb62474143a.tar.gz
be quieter about hidserv descriptors that are too old or too new.
we can't do anything about them anyway. svn:r6073
-rw-r--r--src/or/directory.c5
-rw-r--r--src/or/rendcommon.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 8ebe66e6d..3a74fc235 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1722,8 +1722,9 @@ directory_handle_command_post(connection_t *conn, char *headers,
/* rendezvous descriptor post */
if (rend_cache_store(body, body_len) < 0) {
// char tmp[1024*2+1];
- log_notice(LD_DIRSERV,"Rejected rend descriptor (length %d) from %s.",
- (int)body_len, origin);
+ log_fn(LOG_PROTOCOL_WARN, LD_DIRSERV,
+ "Rejected rend descriptor (length %d) from %s.",
+ (int)body_len, origin);
#if 0
if (body_len <= 1024) {
base16_encode(tmp, sizeof(tmp), body, body_len);
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 40f84625b..a4ba39f59 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -379,13 +379,14 @@ rend_cache_store(const char *desc, size_t desc_len)
tor_snprintf(key, sizeof(key), "%c%s", parsed->version?'1':'0', query);
now = time(NULL);
if (parsed->timestamp < now-REND_CACHE_MAX_AGE-REND_CACHE_MAX_SKEW) {
- log_warn(LD_REND,"Service descriptor %s is too old.", safe_str(query));
+ log_fn(LOG_PROTOCOL_WARN, LD_REND,
+ "Service descriptor %s is too old.", safe_str(query));
rend_service_descriptor_free(parsed);
return -1;
}
if (parsed->timestamp > now+REND_CACHE_MAX_SKEW) {
- log_warn(LD_REND,"Service descriptor %s is too far in the future.",
- safe_str(query));
+ log_fn(LOG_PROTOCOL_WARN, LD_REND,
+ "Service descriptor %s is too far in the future.", safe_str(query));
rend_service_descriptor_free(parsed);
return -1;
}