Skip to content

Commit

Permalink
SIGA-805 Remove stacktrace from HTTP 404 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jukutr committed Apr 30, 2024
1 parent 441fd93 commit 6807be2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public ErrorResponse httpRequestMethodNotSupportedException(HttpRequestMethodNot
@ExceptionHandler(NoResourceFoundException.class)
@ResponseStatus(value = HttpStatus.NOT_FOUND)
public ErrorResponse notFoundException(NoResourceFoundException exception) {
log.error("Not found exception - {}", exception.getLocalizedMessage(), exception);
log.error("Not found exception - {}", exception.getLocalizedMessage());
ErrorResponse errorResponse = new ErrorResponse();
errorResponse.setErrorMessage(exception.getMessage());
errorResponse.setErrorCode(ErrorResponseCode.RESOURCE_NOT_FOUND_EXCEPTION.name());
Expand Down

0 comments on commit 6807be2

Please sign in to comment.