diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-05-09 01:10:57 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-05-09 01:10:57 +0000 |
commit | 54a58c897c1b3cb454ec6b95f3152fda70920683 (patch) | |
tree | 49f1e5eb2abce99b893fbd75f73ffa618dfa1aee /src/or/main.c | |
parent | 39314a13b0cfeac34d693b748c6bd0b28468d9ec (diff) | |
download | tor-54a58c897c1b3cb454ec6b95f3152fda70920683.tar tor-54a58c897c1b3cb454ec6b95f3152fda70920683.tar.gz |
more debugging on build_directory
svn:r280
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index cb39eb284..289e8759c 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -658,6 +658,8 @@ build_directory(directory_t *dir) { return -1; } if (my_routerinfo) { + log(LOG_INFO, "build_directory(): adding self (%d:%d)", + my_routerinfo->address, my_routerinfo->or_port); routers[n++] = my_routerinfo; } for(i = 0; i<nfds; ++i) { @@ -669,10 +671,12 @@ build_directory(directory_t *dir) { continue; /* we only want to list ones that successfully handshaked */ router = router_get_by_addr_port(conn->addr,conn->port); if(!router) { - log(LOG_ERR,"dump_directory_to_string(): couldn\'t find router %d:%d!", + log(LOG_ERR,"build_directory(): couldn\'t find router %d:%d!", conn->addr,conn->port); continue; } + log(LOG_INFO, "build_directory(): adding router (%d:%d)", + router->address, router->or_port); routers[n++] = router; } dir->routers = routers; |