Skip to content
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

@PulsarListener method does not log exceptions when throwing RuntimeException, how to fix it? #1008

Open
Programmer-yyds opened this issue Jan 20, 2025 · 1 comment

Comments

@Programmer-yyds
Copy link

Question Description: I am using Apache Pulsar integrated with Spring Boot and have defined a message consumer method as shown below:
When the consumeString3 method throws an exception, I expect the exception stack trace to be logged. However, after running the application, no exception logs appear in the console or log files.

Image

Want to confirm why the exception is not printed in the log. Do you need to configure additional properties of Pulsar or Spring Boot to enable exception logging? Using a try-catch block directly inside the @PulsarListener method to log exceptions is generally considered a poor practice for several

Image
@onobc
Copy link
Collaborator

onobc commented Jan 31, 2025

Hi @Programmer-yyds ,
The team has been busy and has not got around to this issue yet. However, it is on our radar and we should get to it in the next 24-48hrs. Thanks for your patience.

  • chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants