mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-24 15:07:56 +01:00
Fix log level for ValidationException
This commit is contained in:
parent
597e3ab165
commit
2c1e634a1a
@ -68,7 +68,7 @@ public class BaseController {
|
|||||||
@ExceptionHandler(ValidationException.class)
|
@ExceptionHandler(ValidationException.class)
|
||||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||||
public RestErrors handleValidationErrors(@NotNull ValidationException ex) {
|
public RestErrors handleValidationErrors(@NotNull ValidationException ex) {
|
||||||
logger.error(ex.getMessage(), ex);
|
logger.debug(ex.getMessage(), ex);
|
||||||
return new RestErrors(ex.getErrors(), messageSource);
|
return new RestErrors(ex.getErrors(), messageSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user