Exception not logged at DEBUG level when handled by annotated controller method #996
Labels
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Documentation states that:
Unresolved exception are logged at ERROR level along with the executionId to correlate to the error sent to the client. Resolved exceptions are logged at DEBUG level.
This might be true for DataFetcherExceptionResolverAdapter usage, but when we use annotated controllers with @GraphQlExceptionHandler, we see only this log:
2024-06-14 09:05:50.827 [http-nio-auto-1-exec-1] DEBUG o.s.g.d.m.a.s.AnnotatedControllerExceptionResolver - Handling exception with public java.util.List<graphql.GraphQLError> com.xxx.xxx.xxx.exception.GlobalExceptionHandler.handleValidationException(com.xxx.xxx.xxx.xxx.exception.ValidationException,graphql.schema.DataFetchingEnvironment)
I'd expect also AnnotatedControllerExceptionResolver to log resolved exceptions on debug level, not only their "handling"
The text was updated successfully, but these errors were encountered: