Don't reload the log4j2.properties file as this seems to be buggy in a lot of cases.

This commit is contained in:
CalDescent 2022-01-12 20:26:41 +00:00
parent f44c21ce59
commit e2b13791bb

View File

@ -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