소스 검색

don't tell ordinary users about broken directory servers.
it's a shame that they're broken, but most people are just
confused by the warning.


svn:r5988

Roger Dingledine 19 년 전
부모
커밋
97571a1cb4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/or/directory.c

+ 2 - 1
src/or/directory.c

@@ -954,7 +954,8 @@ connection_dir_client_reached_eof(connection_t *conn)
     /* If we're pretty sure that we have a compressed directory, and
      * we didn't manage to uncompress it, then warn and bail. */
     if (!plausible && !new_body) {
-      warn(LD_HTTP, "Unable to decompress HTTP body (server '%s:%d').",
+      log(LOG_PROTOCOL_WARN, LD_HTTP,
+          "Unable to decompress HTTP body (server '%s:%d').",
            conn->address, conn->port);
       tor_free(body); tor_free(headers); tor_free(reason);
       return -1;