Browse Source

Warn the user when we mark ourself as down.

svn:r2356
Nick Mathewson 21 years ago
parent
commit
431b33a2ca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/routerlist.c

+ 2 - 0
src/or/routerlist.c

@@ -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 */
   if(!router) /* we don't seem to know about him in the first place */
     return;
     return;
   log_fn(LOG_DEBUG,"Marking %s as down.",router->nickname);
   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->is_running = 0;
   router->status_set_at = time(NULL);
   router->status_set_at = time(NULL);
 }
 }