aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-24 22:40:32 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-24 22:40:32 +0000
commit220e8599127a5e4c66290e54b6faee08e96f17a1 (patch)
treee147a7c21882b2b65c8851e2452b50e9c432bf8e /src
parent2e47a0f00904798c16a24aab93d9f9a5e42cd323 (diff)
downloadtor-220e8599127a5e4c66290e54b6faee08e96f17a1.tar
tor-220e8599127a5e4c66290e54b6faee08e96f17a1.tar.gz
Note router addr:port in log messages
svn:r1685
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_or.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index ce7ddc0b7..1762d03fb 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -200,10 +200,12 @@ static int connection_tls_finish_handshake(connection_t *conn) {
conn->address, conn->port);
return -1;
}
- log_fn(LOG_DEBUG, "Other side claims to be '%s'", nickname);
+ log_fn(LOG_DEBUG, "Other side (%s:%d) claims to be '%s'", conn->address,
+ conn->port, nickname);
router = router_get_by_nickname(nickname);
if (!router) {
- log_fn(LOG_INFO, "Unrecognized router with nickname '%s'", nickname);
+ log_fn(LOG_INFO, "Unrecognized router with nickname '%s' at %s:%d",
+ nickname, conn->address, conn->port);
return -1;
}
if(tor_tls_verify(conn->tls, router->identity_pkey)<0) {
@@ -217,8 +219,8 @@ static int connection_tls_finish_handshake(connection_t *conn) {
/* I initiated this connection. */
if (strcasecmp(conn->nickname, nickname)) {
log_fn(options.DirPort ? LOG_WARN : LOG_INFO,
- "Other side is '%s', but we tried to connect to '%s'",
- nickname, conn->nickname);
+ "Other side (%s:%d) is '%s', but we tried to connect to '%s'",
+ conn->address, conn->port, nickname, conn->nickname);
return -1;
}
} else {