[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] when rend_cache_store warns, give more detail



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	rendcommon.c 
Log Message:
when rend_cache_store warns, give more detail


Index: rendcommon.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendcommon.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- rendcommon.c	8 Apr 2004 05:08:27 -0000	1.24
+++ rendcommon.c	8 Apr 2004 20:13:28 -0000	1.25
@@ -235,23 +235,23 @@
   }
   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;