From 84bb5cb1f1d71a8f5067e85fd19c43dcb2bb33c5 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 11 Sep 2017 16:10:18 -0400 Subject: [PATCH] circuit: Add a log info when marking for close Closes #23462 Signed-off-by: David Goulet --- src/or/circuitlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 774edc90b4..5cc6252325 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 circ from