JAL-3628 JAL-3708 call Cache.initLogger() before using Cache.log in static methods...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 10 Aug 2020 14:01:23 +0000 (15:01 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 10 Aug 2020 14:01:23 +0000 (15:01 +0100)
src/jalview/io/BackupFiles.java

index e943b23..818603c 100644 (file)
@@ -163,6 +163,7 @@ public class BackupFiles
 
   public static void classInit()
   {
+    Cache.initLogger();
     Cache.log.debug("BACKUPFILES classInit");
     boolean e = Cache.getDefault(ENABLED, true);
     setEnabled(e);
@@ -895,6 +896,7 @@ public class BackupFiles
 
   public static boolean moveFileToFile(File oldFile, File newFile)
   {
+    Cache.initLogger();
     boolean ret = false;
     Path oldPath = Paths.get(oldFile.getAbsolutePath());
     Path newPath = Paths.get(newFile.getAbsolutePath());