refactor: Modify the parameter validation log level to info (#10275)
This commit is contained in:
parent
fcdfe338fb
commit
cf552844b2
|
|
@ -287,7 +287,7 @@ public class JValidator implements Validator {
|
|||
}
|
||||
|
||||
if (!violations.isEmpty()) {
|
||||
logger.error("Failed to validate service: " + clazz.getName() + ", method: " + methodName + ", cause: " + violations);
|
||||
logger.info("Failed to validate service: " + clazz.getName() + ", method: " + methodName + ", cause: " + violations);
|
||||
throw new ConstraintViolationException("Failed to validate service: " + clazz.getName() + ", method: " + methodName + ", cause: " + violations, violations);
|
||||
}
|
||||
} catch (ValidationException e) {
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ public class JValidatorNew implements Validator {
|
|||
}
|
||||
|
||||
if (!violations.isEmpty()) {
|
||||
logger.error("Failed to validate service: " + clazz.getName() + ", method: " + methodName + ", cause: " + violations);
|
||||
logger.info("Failed to validate service: " + clazz.getName() + ", method: " + methodName + ", cause: " + violations);
|
||||
throw new ConstraintViolationException("Failed to validate service: " + clazz.getName() + ", method: " + methodName + ", cause: " + violations, violations);
|
||||
}
|
||||
} catch (ValidationException e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue