[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [obfsproxy/master] Log the result of a connection, instead of the attempt.
commit e8562b1d0af2652bc8c4e9f5842d2ca91fcdfe18
Author: George Kadianakis <desnacked@xxxxxxxxxx>
Date: Mon Feb 13 00:07:34 2012 +0200
Log the result of a connection, instead of the attempt.
---
src/network.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/network.c b/src/network.c
index 27eb2ee..e61e82d 100644
--- a/src/network.c
+++ b/src/network.c
@@ -529,8 +529,6 @@ open_outbound(conn_t *conn, bufferevent_data_cb readcb)
do {
peername = printable_address(addr->ai_addr, addr->ai_addrlen);
- log_info("%s (%s): trying to connect to %s",
- conn->peername, conn->cfg->vtable->name, peername);
if (bufferevent_socket_connect(buf, addr->ai_addr, addr->ai_addrlen) >= 0)
goto success;
log_info("%s: connection to %s failed: %s",
@@ -547,6 +545,8 @@ open_outbound(conn_t *conn, bufferevent_data_cb readcb)
return NULL;
success:
+ log_info("%s (%s): Successful outbound connection to '%s'.",
+ conn->peername, conn->cfg->vtable->name, peername);
bufferevent_enable(buf, EV_READ|EV_WRITE);
newconn->peername = peername;
obfs_assert(connections);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits