diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-08 20:13:28 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-08 20:13:28 +0000 |
commit | 3b97a54226d7c3a1f799f3e80e728924b1f969cb (patch) | |
tree | dd6032fcd53656c9858657eb1602268f241a6730 /src/or/rendcommon.c | |
parent | aa2189b4066600492495ea3cd2f0983ed8188c3c (diff) | |
download | tor-3b97a54226d7c3a1f799f3e80e728924b1f969cb.tar.gz tor-3b97a54226d7c3a1f799f3e80e728924b1f969cb.zip |
when rend_cache_store warns, give more detail
svn:r1572
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index ac774b8b85..cec26a615a 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -235,23 +235,23 @@ int rend_cache_store(char *desc, int desc_len) } now = time(NULL); if (parsed->timestamp < now-REND_CACHE_MAX_AGE) { - log_fn(LOG_WARN,"Service descriptor is too old"); + log_fn(LOG_WARN,"Service descriptor %s is too old", query); rend_service_descriptor_free(parsed); return -1; } if (parsed->timestamp > now+REND_CACHE_MAX_SKEW) { - log_fn(LOG_WARN,"Service descriptor is too far in the future"); + log_fn(LOG_WARN,"Service descriptor %s is too far in the future", query); rend_service_descriptor_free(parsed); return -1; } e = (rend_cache_entry_t*) strmap_get_lc(rend_cache, query); if (e && e->parsed->timestamp > parsed->timestamp) { - log_fn(LOG_INFO,"We already have a newer service descriptor with the same ID"); + log_fn(LOG_INFO,"We already have a newer service descriptor %s with the same ID", query); rend_service_descriptor_free(parsed); return 0; } if (e && e->len == desc_len && !memcmp(desc,e->desc,desc_len)) { - log_fn(LOG_INFO,"We already have this service descriptor"); + log_fn(LOG_INFO,"We already have this service descriptor %s", query); e->received = time(NULL); rend_service_descriptor_free(parsed); return 0; |