[FIX] Fix log4j config unpacking

This commit is contained in:
zznty 2024-03-12 21:08:16 +07:00
parent 730efae7c7
commit 8f4764cc7f

View file

@ -37,7 +37,7 @@ private static void unpackLog4j() {
Path log4jConfigPath = Path.of("log4j2.xml");
if(!Files.exists(log4jConfigPath)) {
try(FileOutputStream output = new FileOutputStream(log4jConfigPath.toFile())) {
try(InputStream input = Main.class.getResourceAsStream("log4j2.xml")) {
try(InputStream input = Main.class.getResourceAsStream("/log4j2.xml")) {
if(input == null) {
return;
}