From: Jim Procter Date: Mon, 10 Aug 2020 14:01:23 +0000 (+0100) Subject: JAL-3628 JAL-3708 call Cache.initLogger() before using Cache.log in static methods... X-Git-Tag: Release_2_11_1_1~13^2~22 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8b9cc4ab226cf029a99a32111e29dd2c703c0fa6;p=jalview.git JAL-3628 JAL-3708 call Cache.initLogger() before using Cache.log in static methods with no class-level guarantee logs are initialised --- 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());