diff options
author | David Goulet <dgoulet@torproject.org> | 2017-09-20 11:56:44 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-09-20 12:52:53 -0400 |
commit | 317dabc57fcf51186e81ffa2db83a8116183866d (patch) | |
tree | 9e3b62869921568908024954f8331ac41e7ae8c8 /src/or/circuituse.c | |
parent | 2998350122884f57c3fe5248fc819b829434f2dd (diff) | |
download | tor-317dabc57fcf51186e81ffa2db83a8116183866d.tar.gz tor-317dabc57fcf51186e81ffa2db83a8116183866d.zip |
circuit: Log n_circ_id and global identifier
When we can, log the n circuit id and global identifier for origin circuit.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 8ffb506043..e6f1e4df88 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -1752,13 +1752,17 @@ circuit_build_failed(origin_circuit_t *circ) already_marked = 1; } log_info(LD_OR, - "Our circuit failed to get a response from the first hop " - "(%s). I'm going to try to rotate to a better connection.", + "Our circuit %u (id: %" PRIu32 ") failed to get a response " + "from the first hop (%s). I'm going to try to rotate to a " + "better connection.", + TO_CIRCUIT(circ)->n_circ_id, circ->global_identifier, channel_get_canonical_remote_descr(n_chan)); n_chan->is_bad_for_new_circs = 1; } else { log_info(LD_OR, - "Our circuit died before the first hop with no connection"); + "Our circuit %u (id: %" PRIu32 ") died before the first hop " + "with no connection", + TO_CIRCUIT(circ)->n_circ_id, circ->global_identifier); } if (n_chan_id && !already_marked) { /* New guard API: we failed. */ |