aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-03-07 19:08:44 +0000
committerChristopher Baines <cb15g11@soton.ac.uk>2014-03-07 19:08:44 +0000
commit4f2f14df95f802e164aa22bb2131f80da127c84e (patch)
tree5b043eb77dc59ae66d317500aed3c34292c4f976
parent70935a8378cb31cc9eb8578477aa4fcf2a13e393 (diff)
downloadtor-4f2f14df95f802e164aa22bb2131f80da127c84e.tar
tor-4f2f14df95f802e164aa22bb2131f80da127c84e.tar.gz
Add some debuging stuff
-rw-r--r--src/or/rendservice.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 0de3189a8..3edb917c5 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -2325,6 +2325,12 @@ rend_service_launch_establish_intro(rend_service_t *service,
"Can't launch circuit to establish introduction at %s.",
safe_str_client(extend_info_describe(intro->extend_info)));
return -1;
+ } else {
+ log_info(LD_REND,
+ "Launched circuit %u to introduction point %s for service %s",
+ (unsigned)launched->base_.n_circ_id,
+ safe_str_client(extend_info_describe(intro->extend_info)),
+ service->service_id);
}
if (tor_memneq(intro->extend_info->identity_digest,
@@ -2335,9 +2341,10 @@ rend_service_launch_establish_intro(rend_service_t *service,
DIGEST_LEN);
base16_encode(orig, sizeof(orig),
intro->extend_info->identity_digest, DIGEST_LEN);
- log_info(LD_REND, "The intro circuit we just cannibalized ends at $%s, "
+ log_info(LD_REND, "The intro circuit %u we just cannibalized ends at $%s, "
"but we requested an intro circuit to $%s. Updating "
- "our service.", cann, orig);
+ "our service.", (unsigned)launched->base_.n_circ_id,
+ cann, orig);
extend_info_free(intro->extend_info);
intro->extend_info = extend_info_dup(launched->build_state->chosen_exit);
}
@@ -2444,9 +2451,14 @@ rend_service_intro_has_opened(origin_circuit_t *circuit)
}
}
+ char cann[HEX_DIGEST_LEN+1];
+ base16_encode(cann, sizeof(cann),
+ circuit->build_state->chosen_exit->identity_digest,
+ DIGEST_LEN);
+
log_info(LD_REND,
- "Established circuit %u as introduction point for service %s",
- (unsigned)circuit->base_.n_circ_id, serviceid);
+ "Established circuit %u $%s as introduction point for service %s",
+ (unsigned)circuit->base_.n_circ_id, cann, serviceid);
/* Use the service key in ESTABLISH_INTRO. */
intro_key = service->private_key;