linghengqian commented on issue #2794: URL: https://github.com/apache/logging-log4j2/issues/2794#issuecomment-2267433432
@vy - I executed `mvn test -Dtest=TestHplsqlLocal -Dmaven.surefire.debug` and started remote debugging on IntelliJ IDEA side. But things are getting weird. Neither the full-args constructor of `org.apache.logging.log4j.status.StatusConsoleListener` nor `org.apache.logging.log4j.status.StatusConsoleListener#setLevel(org.apache.logging.log4j.Level)` was called for either apache/logging-log4j2:2.23.0 where unit test execution succeeded, or apache/logging-log4j2:2.23.1 where unit test execution failed. -  -  - But I did debug in `org.apache.hive.hplsql.Exec#init()` that the system property of `log4j.configurationFile` was successfully set to `hive-log4j2.properties`. This is what `apache/logging-log4j2:2.23.1` can do. -  -  - I feel like there is nothing wrong with the way I debug into unit testing. I’m still not sure which way to go. ```shell git clone [email protected]:linghengqian/hive.git -b test-v2230-log4j cd ./hive/ sdk install java 8.0.422-tem sdk use java 8.0.422-tem sdk install maven mvn clean install -DskipTests mvn test -Dtest=TestHplsqlLocal -Dmaven.surefire.debug ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
