OSDN Git Service

slf4j用のプレースホルダに修正
[coroid/inqubus.git] / frontend / src / saccubus / worker / impl / convert / Convert.java
index dbf3473..07c8ebd 100644 (file)
@@ -63,7 +63,7 @@ public class Convert extends Worker<ConvertResult, ConvertProgress> {
         this.profile = profile;
         this.videoFile = video;
         this.commentFile = comment;
-        logger.info("convert video:{0}, comment:{1}", new Object[]{videoFile, commentFile});
+        logger.info("convert video:{}, comment:{}", videoFile, commentFile);
     }
 
     @Override
@@ -137,7 +137,7 @@ public class Convert extends Worker<ConvertResult, ConvertProgress> {
             try {
                 duration = util.getDuration();
             } catch (IOException ex) {
-                logger.info("動画再生時間を取得できませんでした: {0}", target);
+                logger.info("動画再生時間を取得できませんでした: {}", target);
                 duration = Integer.MAX_VALUE;
             }
             return executeFfmpeg(arguments, duration);
@@ -224,7 +224,7 @@ public class Convert extends Worker<ConvertResult, ConvertProgress> {
                         final String strTime = m.group(1);
                         final double time = Double.parseDouble(strTime);
                         per = 100.0 * time / duration;
-                        logger.trace("time:{0}, duration:{1}", new Object[]{time, duration});
+                        logger.trace("time:{}, duration:{}", time, duration);
                     }
                     publish(new ConvertProgress(PROCESS, per, msg));
                 } else if (!msg.endsWith("No accelerated colorspace conversion found")) {