Skip to content
Snippets Groups Projects
Commit f8c03d19 authored by Komal Makkar's avatar Komal Makkar
Browse files

Original Exception is getting logged here.

parent 54d2e3a3
No related branches found
No related tags found
1 merge request!43Core Change: Original Exception is getting logged.
Pipeline #17327 failed
......@@ -79,9 +79,8 @@ public class SpringExceptionMapper extends ResponseEntityExceptionHandler {
}
private ResponseEntity<Object> getErrorResponse(AppException e) {
if( e.getCause() instanceof Exception) {
Exception original = (Exception) e.getCause();
this.log.error(original.getMessage(), original);
if(e.getOriginalException()!= null) {
this.log.error(e.getOriginalException().getMessage(), e.getOriginalException());
}
if (e.getError().getCode() > 499) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment