OSDN Git Service

printStackTrace削除
authoryukihane <yukihane.feather@gmail.com>
Mon, 1 Aug 2011 09:56:26 +0000 (18:56 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 1 Aug 2011 10:16:19 +0000 (19:16 +0900)
frontend/src/saccubus/properties/SProperties.java

index 5d43a72..9c83820 100644 (file)
@@ -5,6 +5,8 @@ import java.util.Properties;
 import java.io.IOException;
 import java.io.FileOutputStream;
 import java.io.FileInputStream;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 import saccubus.VideoSaveKind;
 import saccubus.converter.filegetter.LoginInfo;
 import saccubus.converter.profile.CommentGetInfo;
@@ -21,19 +23,19 @@ import saccubus.converter.profile.SFile;
  * <p>
  * タイトル: さきゅばす
  * </p>
- * 
+ *
  * <p>
  * 説明: ニコニコ動画の動画をコメントつきで保存
  * </p>
- * 
+ *
  * <p>
  * 著作権: Copyright (c) 2007 PSI
  * </p>
- * 
+ *
  * <p>
  * 会社名:
  * </p>
- * 
+ *
  * @author 未入力
  * @version 1.0
  */
@@ -223,7 +225,7 @@ public class SProperties {
         try {
             prop.storeToXML(new FileOutputStream(PROP_FILE), "settings");
         } catch (IOException ex) {
-            ex.printStackTrace();
+            Logger.getLogger(SProperties.class.getName()).log(Level.SEVERE, "コンフィグファイルの保存に失敗", ex);
         }
     }
 
@@ -232,7 +234,7 @@ public class SProperties {
         try {
             prop.loadFromXML(new FileInputStream(PROP_FILE));
         } catch (IOException ex) {
-            ex.printStackTrace();
+            Logger.getLogger(SProperties.class.getName()).log(Level.INFO, "コンフィグファイルが存在しないため自動生成します", ex);
         }
 
         return new SProperties(