From: Robert Ransom Date: Tue, 15 Mar 2011 16:13:25 +0000 (-0700) Subject: Log the source of a rejected POSTed v3 vote X-Git-Tag: tor-0.2.2.24-alpha~4^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af59dcaee4e5ef147dc263dc9f5bf0e5cc72aad;p=thirdparty%2Ftor.git Log the source of a rejected POSTed v3 vote Related to ticket 2683. --- 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;