diff options
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r-- | src/or/circuit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index 2eed5f8bc..be05caafd 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -559,26 +559,26 @@ send_end: } /* FIXME this now leaves some out */ -void circuit_dump_by_conn(connection_t *conn) { +void circuit_dump_by_conn(connection_t *conn, int severity) { circuit_t *circ; connection_t *tmpconn; for(circ=global_circuitlist;circ;circ = circ->next) { if(circ->p_conn == conn) - printf("Conn %d has App-ward circuit: aci %d (other side %d), state %d (%s)\n", + log(severity, "Conn %d has App-ward circuit: aci %d (other side %d), state %d (%s)", conn->poll_index, circ->p_aci, circ->n_aci, circ->state, circuit_state_to_string[circ->state]); for(tmpconn=circ->p_streams; tmpconn; tmpconn=tmpconn->next_stream) { if(tmpconn == conn) { - printf("Conn %d has App-ward circuit: aci %d (other side %d), state %d (%s)\n", + log(severity,"Conn %d has App-ward circuit: aci %d (other side %d), state %d (%s)", conn->poll_index, circ->p_aci, circ->n_aci, circ->state, circuit_state_to_string[circ->state]); } } if(circ->n_conn == conn) - printf("Conn %d has Exit-ward circuit: aci %d (other side %d), state %d (%s)\n", + log(severity,"Conn %d has Exit-ward circuit: aci %d (other side %d), state %d (%s)", conn->poll_index, circ->n_aci, circ->p_aci, circ->state, circuit_state_to_string[circ->state]); for(tmpconn=circ->n_streams; tmpconn; tmpconn=tmpconn->next_stream) { if(tmpconn == conn) { - printf("Conn %d has Exit-ward circuit: aci %d (other side %d), state %d (%s)\n", + log(severity,"Conn %d has Exit-ward circuit: aci %d (other side %d), state %d (%s)", conn->poll_index, circ->n_aci, circ->p_aci, circ->state, circuit_state_to_string[circ->state]); } } |