diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-12 04:43:25 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-12 04:43:25 +0000 |
commit | aace52320c66f29ac8bec4cba272455b957983cc (patch) | |
tree | ee9970f9030bd1bec0e37a9bb18f60b6f8dd8797 /src/or/command.c | |
parent | 5ced3fd790ed62574df345bc04ec01de45ea711d (diff) | |
download | tor-aace52320c66f29ac8bec4cba272455b957983cc.tar.gz tor-aace52320c66f29ac8bec4cba272455b957983cc.zip |
r18041@catbus: nickm | 2008-02-11 23:43:18 -0500
Make version negotiation and handshaking messages more useful and accurate.
svn:r13477
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/command.c b/src/or/command.c index 591f4cd2a9..8f941e2a99 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -487,7 +487,7 @@ command_process_versions_cell(var_cell_t *cell, or_connection_t *conn) conn->link_proto = highest_supported_version; conn->handshake_state->received_versions = 1; - log_info(LD_OR, "Negotiated version %d with %s", + log_info(LD_OR, "Negotiated version %d with %s; sending NETINFO.", highest_supported_version, safe_str(conn->_base.address)); tor_assert(conn->link_proto >= 2); @@ -595,8 +595,9 @@ command_process_netinfo_cell(cell_t *cell, or_connection_t *conn) if (connection_or_set_state_open(conn)<0) connection_mark_for_close(TO_CONN(conn)); else - log_info(LD_OR, "Got good NETINFO cell from %s", - safe_str(conn->_base.address)); + log_info(LD_OR, "Got good NETINFO cell from %s; OR connection is now " + "open, using protocol version %d", + safe_str(conn->_base.address), (int)conn->link_proto); assert_connection_ok(TO_CONN(conn),time(NULL)); } |