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
Pipeline #21865 passed with stages
in 19 minutes and 1 second
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment