]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
tell us the nickname of the OR that hung up on us
authorRoger Dingledine <arma@torproject.org>
Mon, 26 Apr 2004 01:50:08 +0000 (01:50 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 26 Apr 2004 01:50:08 +0000 (01:50 +0000)
svn:r1706

src/or/connection.c

index 4dfbb2d54d278af42122b9fad07abe5bba1aae77..4c33f68ebf12c360eda4396c8c4095b0ff8ae65d 100644 (file)
@@ -634,7 +634,8 @@ int connection_read_to_buf(connection_t *conn) {
     switch(result) {
       case TOR_TLS_ERROR:
       case TOR_TLS_CLOSE:
-        log_fn(LOG_INFO,"tls error. breaking.");
+        log_fn(LOG_INFO,"tls error. breaking (nickname %s).",
+               conn->nickname ? conn->nickname : "not set yet");
         return -1; /* XXX deal with close better */
       case TOR_TLS_WANTWRITE:
         connection_start_writing(conn);