-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
FORMAT_FAILURE when using Log.error(Object,Throwable)
#44540
Comments
@gastaldi can you help ? |
@jamezp is that intentional or could it be considered a bug? |
I think it's related to the new "let's point to the problematic code in the stack trace" feature. @dmlloyd already fixed some of the issues in this patch: 7e6c529 . But I suppose in the case of That being said, I remember @dmlloyd was quite unhappy about the approach so maybe it's time to go for a cleaner one. @dmlloyd maybe you could share what you had in mind? Someone might be interested in implementing it. We will need a small fix for the backport though but I would very much like us to clean this up for the future if we can. |
Yeah, this doesn't look like it's coming from the log manager. I'm not able to reproduce this outside of Quarkus. |
I'm able to reproduce the problem, but what I'm grappling with is that I don't see why the problem doesn't occur outside of Quarkus. The code path seems very clear to me; the jboss-logging logger calls Here's the partial stack trace which shows what's happening more clearly (the above trace shows the problem during log message replay so some of the interesting stack isn't visible there):
|
OK I think I found the difference; the ad-hoc handlers created by Quarkus do not extend |
IMO yes. If the bug isn't fully fixed, it will be after the log manager release in a few days. |
Merged it, thanks! |
Reopening as the bug will be fixed when the logging manager is updated |
It would be a good idea to add the |
I'm waiting for something to be unblocked on the infra side before making the change. You can add |
Describe the bug
Hi, I stumbled across this bug, when an exception message contained braces and
Log.error(e.getMessage(), e)
produced unexpected output instead of logging the message and stacktrace.Downgrading to quarkus 3.14.2 results in the expected behaviour - 3.14.3 fails.
Expected behavior
Message and Stacktrace should be logged
Actual behavior
The following stacktrace is printed:
How to Reproduce?
This can be reproduced with the following startup bean:
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.14.3 - 3.16.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: