mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-29 14:27:51 +00:00
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:-}")) {
|
if (content.contains("${dirname:-}")) {
|
||||||
content = content.replace("${dirname:-}", "./");
|
content = content.replace("${dirname:-}", "./");
|
||||||
FileUtils.writeStringToFile(log4j2PropertiesPath.toFile(), content, "UTF-8");
|
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) {
|
} catch (IOException e) {
|
||||||
// Not much we can do here
|
// Not much we can do here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user