Преглед на файлове

circuit: Add a log info when marking for close

Closes #23462

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet преди 7 години
родител
ревизия
84bb5cb1f1
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      src/or/circuitlist.c

+ 4 - 0
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