summaryrefslogtreecommitdiff
path: root/src/app/main
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-13 15:14:41 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-16 09:02:10 -0400
commit9d2867c396161e6a5a7604a5de062d8e13719d17 (patch)
tree75c34f73fd34355e8737c1fcadd980994a0c3b77 /src/app/main
parentaa33b88778c2eda110eb79cfe887621853010287 (diff)
downloadtor-9d2867c396161e6a5a7604a5de062d8e13719d17.tar.gz
tor-9d2867c396161e6a5a7604a5de062d8e13719d17.zip
Use connection_describe() for log messages.
Diffstat (limited to 'src/app/main')
-rw-r--r--src/app/main/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c
index 4b1308ddf0..02c4c5bd58 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -338,16 +338,12 @@ dumpstats(int severity)
SMARTLIST_FOREACH_BEGIN(get_connection_array(), connection_t *, conn) {
int i = conn_sl_idx;
tor_log(severity, LD_GENERAL,
- "Conn %d (socket %d) type %d (%s), state %d (%s), created %d secs ago",
- i, (int)conn->s, conn->type, conn_type_to_string(conn->type),
- conn->state, conn_state_to_string(conn->type, conn->state),
+ "Conn %d (socket %d) is a %s, created %d secs ago",
+ i, (int)conn->s,
+ connection_describe(conn),
(int)(now - conn->timestamp_created));
if (!connection_is_listener(conn)) {
tor_log(severity,LD_GENERAL,
- "Conn %d is to %s:%d.", i,
- safe_str_client(conn->address),
- conn->port);
- tor_log(severity,LD_GENERAL,
"Conn %d: %d bytes waiting on inbuf (len %d, last read %d secs ago)",
i,
(int)connection_get_inbuf_len(conn),