diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c index 79e8120282..b7faecdfbf 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1069,11 +1069,14 @@ dumpstats(int severity) { conn->state, conn_state_to_string(conn->type, conn->state), (int)(now - conn->timestamp_created)); if (!connection_is_listener(conn)) { log(severity,"Conn %d is to '%s:%d'.",i,safe_str(conn->address), conn->port); - log(severity,"Conn %d: %d bytes waiting on inbuf (last read %d secs ago)",i, + log(severity,"Conn %d: %d bytes waiting on inbuf (len %d, last read %d secs ago)",i, (int)buf_datalen(conn->inbuf), + (int)buf_capacity(conn->inbuf), (int)(now - conn->timestamp_lastread)); - log(severity,"Conn %d: %d bytes waiting on outbuf (last written %d secs ago)",i, - (int)buf_datalen(conn->outbuf), (int)(now - conn->timestamp_lastwritten)); + log(severity,"Conn %d: %d bytes waiting on outbuf (len %d, last written %d secs ago)",i, + (int)buf_datalen(conn->outbuf), + (int)buf_capacity(conn->outbuf), + (int)(now - conn->timestamp_lastwritten)); } circuit_dump_by_conn(conn, severity); /* dump info about all the circuits using this conn */ } |