[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/maint-0.2.2] Log the source of a rejected POSTed v3 vote
commit 3af59dcaee4e5ef147dc263dc9f5bf0e5cc72aad
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
Date: Tue Mar 15 09:13:25 2011 -0700
Log the source of a rejected POSTed v3 vote
Related to ticket 2683.
---
changes/bug2683a | 3 +++
src/or/directory.c | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/changes/bug2683a b/changes/bug2683a
new file mode 100644
index 0000000..2fe308b
--- /dev/null
+++ b/changes/bug2683a
@@ -0,0 +1,3 @@
+ o Minor features
+ - Log the source of a rejected POSTed v3 networkstatus vote.
+
diff --git a/src/or/directory.c b/src/or/directory.c
index f8d587f..00de1f2 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3259,6 +3259,8 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
write_http_status_line(conn, status, "Vote stored");
} else {
tor_assert(msg);
+ log_warn(LD_DIRSERV, "Rejected vote from %s (\"%s\").",
+ conn->_base.address, msg);
write_http_status_line(conn, status, msg);
}
goto done;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits