-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The parameter -Dlog4j2.debug
does not take effect
in version 2.23.0
, and StatusLogger.debug will no longer print logs
#2337
Comments
In release This is clearly a bug (IMHO the implementation of |
@panbingkun, no need to submit a PR. I am taking care of this. |
Okay, thank you very much for your reply. |
Thanks. |
@panbingkun, I have merged the fix to |
Sure, let we to do it now. |
@panbingkun, the CI job has successfully completed – needed a kick. Would you mind giving |
After testing, it was found that it still did logging-log4j2/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusConsoleListener.java Lines 135 to 141 in c542041
The |
Description
When we upgraded
log4j2
from version2.22.1
to2.23.0
in Spark, we found that logs that could have been printed before are no longer being printed.Configuration
Version: [Log4j version]
2.23.0
Operating system: [OS and version]
Ubuntu 22.04.4 LTS
Andmacos Sonama 14.3.1
.JDK: [JDK distribution and version]
JDK 17
Logs
The following are the logs printed in version
2.22.1
:In version
2.23.0
,StatusLogger
related logs are no longer printed, egThe above logs will no longer be output.
Reproduction
The relevant upgrade PR in Spark is
apache/spark#45292
I found that it was caused by the following changes:
log4j2 version
2.22.1
https://github.com/apache/logging-log4j2/blob/rel/2.22.1/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java#L252-L254
https://github.com/apache/logging-log4j2/blob/rel/2.22.1/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java#L2336-L2346
logging-log4j2/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
Lines 480 to 487 in 8469975
https://github.com/apache/logging-log4j2/blob/rel/2.22.1/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java#L82-L83
log4j2 version
2.23.0
https://github.com/apache/logging-log4j2/blob/rel/2.23.0/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java#L747-L752
The related commit that caused this change is:
Is this change in line with our expectations? Or this is a bug?
The text was updated successfully, but these errors were encountered: