소스 검색

Make directory caches a little less chatty when logging

svn:r5662
Nick Mathewson 20 년 전
부모
커밋
9ef54a3d0c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/or/routerlist.c

+ 2 - 0
src/or/routerlist.c

@@ -3448,6 +3448,8 @@ update_router_descriptor_cache_downloads(time_t now)
       continue;
     }
     smartlist_t *dl = download_from[i];
+    if (! smartlist_len(dl))
+      continue;
     info(LD_DIR, "Requesting %d descriptors from authority \"%s\"",
          smartlist_len(dl), ds->nickname);
     for (j=0; j < smartlist_len(dl); j += MAX_DL_PER_REQUEST) {