]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Warn the user when we mark ourself as down.
authorNick Mathewson <nickm@torproject.org>
Tue, 21 Sep 2004 16:44:20 +0000 (16:44 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 21 Sep 2004 16:44:20 +0000 (16:44 +0000)
svn:r2356

src/or/routerlist.c

index 86d11c09eb5890a03766fa5e13cac5a2c3eaec67..4e58de20c0eb751e3fe410303f484c106ba2364f 100644 (file)
@@ -581,6 +581,8 @@ void router_mark_as_down(const char *digest) {
   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);
 }