Fix log level for ValidationException

This commit is contained in:
Paulo Gustavo Veiga 2023-11-22 20:23:52 -08:00
parent 597e3ab165
commit 2c1e634a1a

View File

@ -68,7 +68,7 @@ public class BaseController {
@ExceptionHandler(ValidationException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
public RestErrors handleValidationErrors(@NotNull ValidationException ex) {
logger.error(ex.getMessage(), ex);
logger.debug(ex.getMessage(), ex);
return new RestErrors(ex.getErrors(), messageSource);
}