[or-cvs] Warn the user when we mark ourself as down.

Nick Mathewson nickm at seul.org
Tue Sep 21 16:44:23 UTC 2004


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

Modified Files:
	routerlist.c 
Log Message:
Warn the user when we mark ourself as down.

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -d -r1.137 -r1.138
--- routerlist.c	10 Sep 2004 21:40:29 -0000	1.137
+++ routerlist.c	21 Sep 2004 16:44:20 -0000	1.138
@@ -581,6 +581,8 @@
   if(!router) /* we don't seem to know about him in the first place */
     return;
   log_fn(LOG_DEBUG,"Marking %s as down.",router->nickname);
+  if (router_is_me(router))
+    log_fn(LOG_WARN, "We just marked ourself as down.");
   router->is_running = 0;
   router->status_set_at = time(NULL);
 }



More information about the tor-commits mailing list