Skip to content
Snippets Groups Projects
Commit 767b1815 authored by David Goulet's avatar David Goulet :panda_face:
Browse files

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's avatarDavid Goulet <dgoulet@torproject.org>
parent fb4a82c4
No related branches found
No related tags found
No related merge requests found
......@@ -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 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment