mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-12-15 22:50:47 +00:00
[Change] log4j2.xml 调整日志输出到文件的限制;
[Change] 将内容较长的日志设为TRACE级别, 以减少日志占用; [CLear] 整理代码;
This commit is contained in:
@ -66,7 +66,7 @@ public class ImageCacheHandler implements EventHandler {
|
||||
throw requestException;
|
||||
}
|
||||
|
||||
log.debug("正在下载...(Content-Length: {}KB)", response.getEntity().getContentLength() / 1024);
|
||||
log.trace("正在下载...(Content-Length: {}KB)", response.getEntity().getContentLength() / 1024);
|
||||
ByteArrayOutputStream bufferOutputStream = new ByteArrayOutputStream();
|
||||
try(FileOutputStream fileOutputStream = new FileOutputStream(storeFile)) {
|
||||
Streams.copy(response.getEntity().getContent(), bufferOutputStream, false);
|
||||
|
||||
Reference in New Issue
Block a user