Skip to content
Snippets Groups Projects
Commit 2cd2d058 authored by Hema Vishnu Pola [Microsoft]'s avatar Hema Vishnu Pola [Microsoft]
Browse files

Merge branch 'users/komakkar/logOriginalException' into 'master'

Core Change: Original Exception is getting logged.

See merge request !43
parents 75472600 71bb69fc
No related branches found
No related tags found
1 merge request!43Core Change: Original Exception is getting logged.
Pipeline #21865 passed with warnings
......@@ -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