Remove debugging statement
All checks were successful
Quality Check / Tests (pull_request) Successful in 1m11s
gitea-sonarqube-bot OK
Build PR / Build and analyze (pull_request) Successful in 1m45s
Quality Check / Checkstyle Main (pull_request) Successful in 35s

This commit is contained in:
Phan Huy Tran 2024-10-23 12:14:23 +02:00 committed by Phan Huy Tran
parent 8ece7713e5
commit c10c50190b

@ -30,7 +30,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler(Exception.class) @ExceptionHandler(Exception.class)
public ResponseEntity<ErrorDetails> handleAllOtherExceptions(Exception ex, WebRequest request) { public ResponseEntity<ErrorDetails> handleAllOtherExceptions(Exception ex, WebRequest request) {
ErrorDetails errorDetails = new ErrorDetails(new Date(), ex.getClass() + " " + ex.getMessage(), request.getDescription(false)); ErrorDetails errorDetails = new ErrorDetails(new Date(), ex.getClass() + " " + ex.getMessage(), request.getDescription(false));
System.out.println(ex);
return new ResponseEntity<>(errorDetails, HttpStatus.INTERNAL_SERVER_ERROR); return new ResponseEntity<>(errorDetails, HttpStatus.INTERNAL_SERVER_ERROR);
} }