[Change] Main, PixivUgoiraBuilder 调整日志输出;

This commit is contained in:
LamGC 2020-04-16 10:59:53 +08:00
parent b720f657d0
commit 7468777b1d
2 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class Main {
ois.close();
log.info("已载入CookieStore");
log.debug(Arrays.toString(args));
log.debug("传入参数: {}", Arrays.toString(args));
ArgumentsRunner.run(Main.class, args);
}

View File

@ -133,7 +133,9 @@ public final class PixivUgoiraBuilder {
int[] rgb = new int[image.getHeight() * image.getWidth()];
log.debug("FrameName: {}, Height: {}, Width: {}, cacheSize: {}", frameFileName, image.getHeight(), image.getWidth(), rgb.length);
image.getRGB(0, 0, image.getWidth(), image.getHeight(), rgb, 0, image.getWidth());
log.trace("帧解析完成, 正在插入...");
encoder.addImage(Image.fromRgb(rgb, image.getWidth()), new ImageOptions().setDelay(frameInfo.get("delay").getAsLong(), TimeUnit.MILLISECONDS));
log.debug("帧 {} 插入完成.", frameFileName);
} catch (IOException e) {
log.error("解析帧图片数据时发生异常", e);
}