[tor/master] circuit: Add a log info when marking for close

commit 84bb5cb1f1d71a8f5067e85fd19c43dcb2bb33c5 Author: David Goulet <dgoulet@torproject.org> Date: Mon Sep 11 16:10:18 2017 -0400 circuit: Add a log info when marking for close Closes #23462 Signed-off-by: David Goulet <dgoulet@torproject.org> --- src/or/circuitlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 774edc90b..5cc625232 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -1912,6 +1912,10 @@ circuit_mark_for_close_, (circuit_t *circ, int reason, int line, circuits_pending_close = smartlist_new(); smartlist_add(circuits_pending_close, circ); + + log_info(LD_GENERAL, "Circuit %u marked for close at %s:%d (orig reason: " + "%u, new reason: %u)", + circ->n_circ_id, file, line, orig_reason, reason); } /** Called immediately before freeing a marked circuit <b>circ</b> from
participants (1)
-
nickm@torproject.org