diff options
author | Roger Dingledine <arma@torproject.org> | 2006-02-21 06:23:57 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-02-21 06:23:57 +0000 |
commit | 25ed4b66e304571f0a94618db9ad8cb62474143a (patch) | |
tree | d2e120cafd16b84af5c57c5c70875088f86c3c7f /src/or/rendcommon.c | |
parent | 6a7d2bf94e63f2e1bc0d76933ca45fee66a1d0bb (diff) | |
download | tor-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
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |