forked from Qortal/qortal
Don't reload the log4j2.properties file as this seems to be buggy in a lot of cases.
This commit is contained in:
parent
f44c21ce59
commit
e2b13791bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user