summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-07-14 23:07:05 +0000
committerRoger Dingledine <arma@torproject.org>2005-07-14 23:07:05 +0000
commitd8d0feb6339db059845a4fbf0b27d2b3d98da728 (patch)
tree74ab5e914302214f370a3647fa70eba155d7dc06
parentf86a1e634f3307c8804b3d8d24d6901689bcb594 (diff)
downloadtor-d8d0feb6339db059845a4fbf0b27d2b3d98da728.tar.gz
tor-d8d0feb6339db059845a4fbf0b27d2b3d98da728.zip
tell us what kind of listener it is, too
svn:r4566
-rw-r--r--src/or/connection.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 30d7fdb446..ba712514bd 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -813,7 +813,8 @@ retry_listeners(int type, struct config_line_t *cfg,
if (force) {
/* It's a listener, and we're relaunching all listeners of this
* type. Close this one. */
- log_fn(LOG_NOTICE, "Closing listener on %s:%d", conn->address, conn->port);
+ log_fn(LOG_NOTICE, "Closing %s on %s:%d",
+ conn_type_to_string(type), conn->address, conn->port);
connection_close_immediate(conn);
connection_mark_for_close(conn);
continue;
@@ -835,12 +836,14 @@ retry_listeners(int type, struct config_line_t *cfg,
});
if (! line) {
/* This one isn't configured. Close it. */
- log_fn(LOG_NOTICE, "Closing listener on %s:%d", conn->address, conn->port);
+ log_fn(LOG_NOTICE, "Closing %s on %s:%d",
+ conn_type_to_string(type), conn->address, conn->port);
connection_close_immediate(conn);
connection_mark_for_close(conn);
} else {
/* It's configured; we don't need to launch it. */
- log_fn(LOG_INFO, "Already have listener on %s:%d",conn->address,conn->port);
+ log_fn(LOG_INFO, "Already have %s on %s:%d",
+ conn_type_to_string(type), conn->address, conn->port);
smartlist_remove(launch, line);
}
}