aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}