-
Notifications
You must be signed in to change notification settings - Fork 582
Change System.err.println and exception.printStackTrace by Logging in ForgivingExceptionHandler.java #113
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
Comments
@PatrickSauts have you considered submitting a pull request? |
I can do that yes. in a few hours. |
I have a question though @michaelklishin. Can I add a dependency on SLF4J ? Or do you have anything else in mind ? |
@PatrickSauts no, you can't. I've misread the title. We will file a separate issue about what should be used for logging, as we are very careful about introducing dependencies. |
Maybe you could at least add some method like void produceErrorMessage(String message, Throwable cause) {
System.err.println(message);
cause.printStackTrace();
} to |
Message in the class ForgivingExceptionHandler.java like:
System.err.println("Caught an exception during connection recovery!");
exception.printStackTrace(System.err);
should go throw the logger.
The user should be able to ignore those messages if he choose to using the logger configuration file.
The text was updated successfully, but these errors were encountered: