mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixing log throwing issue for internal server error(500)
This commit is contained in:
parent
66813f7d40
commit
22ec736841
@ -105,9 +105,7 @@ public class GlobalThrowableMapper implements ExceptionMapper {
|
||||
return ((ForbiddenException) e).getResponse();
|
||||
}
|
||||
//unknown exception log and return
|
||||
if (log.isDebugEnabled()) {
|
||||
log.error("An Unknown exception has been captured by global exception mapper.", e);
|
||||
}
|
||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).header("Content-Type", "application/json")
|
||||
.entity(e500).build();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user