This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Disable stacktrace logging for exceptions handled by @ExceptionHandler #753
rohanliston
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure if I've missed something, but it seems that the exception stacktrace is printed to the log for all exceptions, regardless of whether I've handled it or not with an
@ExceptionHandler
.This results in a lot of log spam for run-of-the-mill errors that shouldn't show up in the logs, as the handler already responds to the client with enough information to resolve the error themselves.
Is it possible to disable the stacktrace in the log for anything that's been explicitly handled? The log is coming from
SimpleDataFetcherExceptionHandler
,Beta Was this translation helpful? Give feedback.
All reactions