summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-08-11 14:13:25 +0000
committerRoger Dingledine <arma@torproject.org>2007-08-11 14:13:25 +0000
commit330abbb6c61a7a2eb39b5b921ff1c3a1a80beca0 (patch)
tree34e9c5db5eddc71d14db45d75b5622ce2e73e8e6 /src/or/directory.c
parent59204840832482a128039f5fb6d18faccfb11207 (diff)
downloadtor-330abbb6c61a7a2eb39b5b921ff1c3a1a80beca0.tar.gz
tor-330abbb6c61a7a2eb39b5b921ff1c3a1a80beca0.zip
logging patch from karsten, slightly modified to compile
svn:r11074
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 0174e62404..d5ac919e32 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1471,6 +1471,8 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
}
if (conn->_base.purpose == DIR_PURPOSE_UPLOAD_RENDDESC) {
+ log_info(LD_REND,"Uploaded rendezvous descriptor (status %d (%s))",
+ status_code, escaped(reason));
switch (status_code) {
case 200:
log_info(LD_REND,
@@ -2002,6 +2004,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
int versioned = !strcmpstart(url,"/tor/rendezvous1/");
const char *query = url+strlen("/tor/rendezvous/")+(versioned?1:0);
+ log_info(LD_REND, "Handling rendezvous descriptor get");
switch (rend_cache_lookup_desc(query, versioned?-1:0, &descp, &desc_len)) {
case 1: /* valid */
write_http_response_header(conn, desc_len, "application/octet-stream",
@@ -2142,6 +2145,7 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
if (options->HSAuthoritativeDir &&
!strcmpstart(url,"/tor/rendezvous/publish")) {
/* rendezvous descriptor post */
+ log_info(LD_REND, "Handling rendezvous descriptor post.");
if (rend_cache_store(body, body_len, 1) < 0) {
// char tmp[1024*2+1];
log_fn(LOG_PROTOCOL_WARN, LD_DIRSERV,