-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Make it possible to override logExceptionIfPresent in AbstractHealthIndicator and AbstractReactiveHealthIndicator #43492
Comments
Can provide some more details about how/why you want to replace the default logic? |
Of course! |
I feel like we may need to improve the way that we log health indicator errors rather than change the visibility of I'm also not convinced that we should be sending alerts as a side effect of calling the health indicator. Currently the indicators are invoked only when someone hits the I'd like to repurpose this issue for relocating the logging code and making it easier to change. I'm not convinced that we should be adding scheduled health indicator invocations just yet. Let's see what the rest of the team thinks. |
I've opened a new issue (#43589) to look at centralizing the logging. |
Rename and change the visibility of the
logExceptionIfPresent
method to protected so that it is possible to replace the default logic when necessary, increasing the possibility of reusing this abstract class.The text was updated successfully, but these errors were encountered: