From e2b13791bb2307d40e57cc9d8104a685d93b6f77 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Wed, 12 Jan 2022 20:26:41 +0000 Subject: [PATCH] Don't reload the log4j2.properties file as this seems to be buggy in a lot of cases. --- src/main/java/org/qortal/utils/LoggingUtils.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/qortal/utils/LoggingUtils.java b/src/main/java/org/qortal/utils/LoggingUtils.java index cb8af45f..eeb2a7c0 100644 --- a/src/main/java/org/qortal/utils/LoggingUtils.java +++ b/src/main/java/org/qortal/utils/LoggingUtils.java @@ -18,9 +18,6 @@ public class LoggingUtils { if (content.contains("${dirname:-}")) { content = content.replace("${dirname:-}", "./"); FileUtils.writeStringToFile(log4j2PropertiesPath.toFile(), content, "UTF-8"); - - // Force reload the log4j2.properties file - ((org.apache.logging.log4j.core.LoggerContext) LogManager.getContext(false)).reconfigure(); } } catch (IOException e) { // Not much we can do here