Просмотр исходного кода

remove the loud logging of busted rendezvous descriptors

svn:r5758
Roger Dingledine 20 лет назад
Родитель
Сommit
fa05c1b21b
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/or/directory.c

+ 3 - 1
src/or/directory.c

@@ -1640,13 +1640,15 @@ directory_handle_command_post(connection_t *conn, char *headers,
   if (!strcmpstart(url,"/tor/rendezvous/publish")) {
     /* rendezvous descriptor post */
     if (rend_cache_store(body, body_len) < 0) {
-      char tmp[1024*2+1];
+//      char tmp[1024*2+1];
       notice(LD_DIRSERV,"Rejected rend descriptor (length %d) from %s.",
              (int)body_len, origin);
+#if 0
       if (body_len <= 1024) {
         base16_encode(tmp, sizeof(tmp), body, body_len);
         notice(LD_DIRSERV,"Body was: %s", tmp);
       }
+#endif
       write_http_status_line(conn, 400, "Invalid service descriptor rejected");
     } else {
       write_http_status_line(conn, 200, "Service descriptor stored");