Skip to content

Commit

Permalink
修改日志格式
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayaoO3O committed Feb 18, 2021
1 parent 1b2a88e commit c220531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public Future<List<PhotoEntity>> getPhotoInfo(ChapterEntity chapterEntity) {
photoEntity.setUrl(StrUtil.trim(urlAndName[ 0 ]));
photoEntity.setName(StrUtil.trim(urlAndName[ 1 ]));
photoEntities.add(photoEntity);
log.info(photoEntity.toString());
log.info(StrUtil.format("chapter:[{}]-photo:[{}]-url:[{}]"), chapterEntity.getName(), photoEntity.getName(), photoEntity.getUrl());
}
return new AsyncResult<>(photoEntities);
}
Expand Down Expand Up @@ -157,7 +157,7 @@ public void saveImage(HttpRequest httpRequest, File photoFile) {
try {
ThreadUtil.sleep(RandomUtil.randomInt(2) * 1000L);
httpResponse = httpRequest.cookie(cookie).setHttpProxy(proxyHost, proxyPort).execute();
log.info("getImage->获取图片:[{}]成功", photoFile.getName());
log.info("getImage->获取图片:[{}]成功", httpRequest.getUrl());
} catch(Exception e) {
log.error("saveImage->下载图片失败:[{}]", e.getLocalizedMessage(), e);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/vip/comic18/finder/service/ComicService.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void downloadComic(ComicEntity comicEntity) throws ExecutionException, In
for(PhotoEntity photo : photos) {
File photoFile = FileUtil.file(chapterDir.getPath() + File.separatorChar + photo.getName());
if(photoFile.exists()) {
log.info("downloadComic->图片[{}]已下载,跳过该图片", photoFile.getName());
log.info("downloadComic->图片[{}]已下载,跳过该图片", photoFile.getPath());
continue;
}
if(chapter.getUpdatedAt().after(DateUtil.parse("2020-10-27"))) {
Expand Down

0 comments on commit c220531

Please sign in to comment.