Skip to content

Commit 9ba7e04

Browse files
authored
[fix](be) Load JNI log4j2 properties config (#63063)
Problem Summary: ScannerLoader forced log4j2.xml even when the file-based log4j2.properties resource should be used, causing JNI logs to keep using the XML configuration.
1 parent 333e33d commit 9ba7e04

2 files changed

Lines changed: 1 addition & 64 deletions

File tree

fe/be-java-extensions/java-common/src/main/java/org/apache/doris/common/classloader/ScannerLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class ScannerLoader {
6363
}
6464

6565
// Point log4j2 to our configuration file in classpath
66-
System.setProperty("log4j2.configurationFile", "log4j2.xml");
66+
System.setProperty("log4j2.configurationFile", "log4j2.properties");
6767

6868
// Disable log4j2's shutdown hook to prevent premature shutdown in JNI environment
6969
System.setProperty("log4j.shutdownHookEnabled", "false");

fe/be-java-extensions/java-common/src/main/resources/log4j2.xml

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)