Skip to content

Commit

Permalink
[FIX] Fix log4j config unpacking (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
zznty authored Mar 12, 2024
1 parent 3e6af5a commit ac6c312
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ac6c312

Please sign in to comment.