]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Improve the message we log on unexpected dirauth status code
authorNick Mathewson <nickm@torproject.org>
Wed, 24 May 2017 13:08:59 +0000 (09:08 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 24 May 2017 13:08:59 +0000 (09:08 -0400)
It's still not great, but should be less confusing what's wrong
here.

Closes ticket 1121.

changes/bug1121 [new file with mode: 0644]
src/or/directory.c

diff --git a/changes/bug1121 b/changes/bug1121
new file mode 100644 (file)
index 0000000..d11ed64
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (logging):
+    - Provide a better log message when a directory authority responds
+      to an upload with an unexpected status code. Fixes bug 11121;
+      bugfix on 0.1.0.1-rc.
index 740333d46e63adda1d1cbbee48993bc4c578628d..a8f9788fde5f31c3ad5015c6167890a6fdc21387 100644 (file)
@@ -2895,8 +2895,9 @@ handle_response_upload_dir(dir_connection_t *conn,
     break;
   default:
     log_warn(LD_GENERAL,
-             "http status %d (%s) reason unexpected while uploading "
-             "descriptor to server '%s:%d').",
+             "HTTP status %d (%s) was unexpected while uploading "
+             "descriptor to server '%s:%d'. Possibly the server is "
+             "misconfigured?",
              status_code, escaped(reason), conn->base_.address,
              conn->base_.port);
     break;
@@ -2932,8 +2933,8 @@ handle_response_upload_vote(dir_connection_t *conn,
     break;
   default:
     log_warn(LD_GENERAL,
-             "http status %d (%s) reason unexpected while uploading "
-             "vote to server '%s:%d').",
+             "HTTP status %d (%s) was unexpected while uploading "
+             "vote to server '%s:%d'.",
              status_code, escaped(reason), conn->base_.address,
              conn->base_.port);
     break;
@@ -2968,8 +2969,8 @@ handle_response_upload_signatures(dir_connection_t *conn,
     break;
   default:
     log_warn(LD_GENERAL,
-             "http status %d (%s) reason unexpected while uploading "
-             "signatures to server '%s:%d').",
+             "HTTP status %d (%s) was unexpected while uploading "
+             "signatures to server '%s:%d'.",
              status_code, escaped(reason), conn->base_.address,
              conn->base_.port);
     break;