[or-cvs] more debugging on build_directory

Nick Mathewson nickm at seul.org
Fri May 9 01:11:00 UTC 2003


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv17793/src/or

Modified Files:
	main.c 
Log Message:
more debugging on build_directory

Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- main.c	9 May 2003 01:04:58 -0000	1.60
+++ main.c	9 May 2003 01:10:57 -0000	1.61
@@ -658,6 +658,8 @@
     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 @@
       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;



More information about the tor-commits mailing list