aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-09-25 16:08:11 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-09-25 16:08:11 -0400
commit767b1815e9c02b1ee45f1853b32878fb1bc806c7 (patch)
treea42bf3c857e8aebe54b46b7d2210e097e29e0ec1 /src/or/circuituse.c
parentfb4a82c485b694e080a1d86dde7be2ddbf512bc4 (diff)
downloadtor-767b1815e9c02b1ee45f1853b32878fb1bc806c7.tar.gz
tor-767b1815e9c02b1ee45f1853b32878fb1bc806c7.zip
circuit: Log circuit identifiers when cannibalizing
This removes the "nickname" of the cannibalized circuit last hop as it is useless. It now logs the n_circ_id and global identifier so we can match it with other logging statement. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 343ce3bcf5..e2b21df016 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1904,8 +1904,9 @@ circuit_launch_by_extend_info(uint8_t purpose,
uint8_t old_purpose = circ->base_.purpose;
struct timeval old_timestamp_began = circ->base_.timestamp_began;
- log_info(LD_CIRC,"Cannibalizing circ '%s' for purpose %d (%s)",
- build_state_get_exit_nickname(circ->build_state), purpose,
+ log_info(LD_CIRC, "Cannibalizing circ %u (id: %" PRIu32 ") for "
+ "purpose %d (%s)",
+ TO_CIRCUIT(circ)->n_circ_id, circ->global_identifier, purpose,
circuit_purpose_to_string(purpose));
if ((purpose == CIRCUIT_PURPOSE_S_CONNECT_REND ||