summaryrefslogtreecommitdiff
path: root/src/or/circuit.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-08-11 20:22:48 +0000
committerRoger Dingledine <arma@torproject.org>2003-08-11 20:22:48 +0000
commit681c7539ef9a7ec3b0b2e6c1da551397820f7589 (patch)
tree4d960c0b1f368a4cd39180a0c1e186214892cc71 /src/or/circuit.c
parent17a311d9a00fe8ba9fc6288eafeb00e4bc1e8c12 (diff)
downloadtor-681c7539ef9a7ec3b0b2e6c1da551397820f7589.tar.gz
tor-681c7539ef9a7ec3b0b2e6c1da551397820f7589.zip
better log output for debugging
svn:r375
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r--src/or/circuit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index a3fd62d295..9cbe660e23 100644
--- a/src/or/circuit.c
+++ b/src/or/circuit.c
@@ -805,7 +805,9 @@ int circuit_extend(cell_t *cell, circuit_t *circ) {
/* note also that this will close circuits where the onion has the same
* router twice in a row in the path. i think that's ok. -RD
*/
- log_fn(LOG_DEBUG,"Next router not connected. Closing.");
+ struct in_addr in;
+ in.s_addr = htonl(circ->n_addr);
+ log_fn(LOG_DEBUG,"Next router (%s:%d) not connected. Closing.", inet_ntoa(in), circ->n_port);
/* XXX later we should fail more gracefully here, like with a 'truncated' */
return -1;
}