aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-09-21 16:44:20 +0000
committerNick Mathewson <nickm@torproject.org>2004-09-21 16:44:20 +0000
commit431b33a2ca5622202c6d208d644ea1c250f4134f (patch)
tree3ff3ecd5e86b29c640808dbc33a9c4a769482888 /src
parent0dcc8c70488c5da706bf9a739c4e4b118c8c0ad1 (diff)
downloadtor-431b33a2ca5622202c6d208d644ea1c250f4134f.tar
tor-431b33a2ca5622202c6d208d644ea1c250f4134f.tar.gz
Warn the user when we mark ourself as down.
svn:r2356
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 86d11c09e..4e58de20c 100644
--- a/src/or/routerlist.c
+++ b/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 */
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);
}