From 8b9cc4ab226cf029a99a32111e29dd2c703c0fa6 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 10 Aug 2020 15:01:23 +0100 Subject: [PATCH] JAL-3628 JAL-3708 call Cache.initLogger() before using Cache.log in static methods with no class-level guarantee logs are initialised --- src/jalview/io/BackupFiles.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jalview/io/BackupFiles.java b/src/jalview/io/BackupFiles.java index e943b23..818603c 100644 --- a/src/jalview/io/BackupFiles.java +++ b/src/jalview/io/BackupFiles.java @@ -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()); -- 1.7.10.2