[tor-commits] [tor/master] Log a notice *after* creating connection

nickm at torproject.org nickm at torproject.org
Wed Sep 12 13:06:41 UTC 2018


commit 27c868eff19dbcc208f6db66ec3e2de2104fa754
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date:   Sun May 20 19:10:02 2018 +0200

    Log a notice *after* creating connection
---
 src/core/mainloop/connection.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c
index f435b2985..a32e3b4f2 100644
--- a/src/core/mainloop/connection.c
+++ b/src/core/mainloop/connection.c
@@ -1486,6 +1486,8 @@ connection_listener_new(const struct sockaddr *listensockaddr,
    */
   connection_check_oos(get_n_open_sockets(), 0);
 
+  log_notice(LD_NET, "Opened %s on %s",
+             conn_type_to_string(type), fmt_addrport(&addr, usePort));
   return conn;
 
  err:





More information about the tor-commits mailing list