diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-03-15 09:13:25 -0700 |
---|---|---|
committer | Robert Ransom <rransom.8774@gmail.com> | 2011-03-15 09:16:58 -0700 |
commit | 3af59dcaee4e5ef147dc263dc9f5bf0e5cc72aad (patch) | |
tree | d2f117c019af06565f9ff06a9b73b4c04005e1fc | |
parent | b97d9abd0940037b249a1ee56724dbfed904263b (diff) | |
download | tor-3af59dcaee4e5ef147dc263dc9f5bf0e5cc72aad.tar.gz tor-3af59dcaee4e5ef147dc263dc9f5bf0e5cc72aad.zip |
Log the source of a rejected POSTed v3 vote
Related to ticket 2683.
-rw-r--r-- | changes/bug2683a | 3 | ||||
-rw-r--r-- | 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 0000000000..2fe308b030 --- /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 f8d587f35c..00de1f2f80 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; |