Browse Source

when we get funny-looking lines on our dirport, shut up about it.

svn:r6135
Roger Dingledine 19 years ago
parent
commit
d80d5370e0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/or/directory.c

+ 3 - 2
src/or/directory.c

@@ -1783,8 +1783,9 @@ directory_handle_command(connection_t *conn)
   else if (!strncasecmp(headers,"POST",4))
   else if (!strncasecmp(headers,"POST",4))
     r = directory_handle_command_post(conn, headers, body, body_len);
     r = directory_handle_command_post(conn, headers, body, body_len);
   else {
   else {
-    log_warn(LD_PROTOCOL,"Got headers %s with unknown command. Closing.",
-             escaped(headers));
+    log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
+           "Got headers %s with unknown command. Closing.",
+           escaped(headers));
     r = -1;
     r = -1;
   }
   }