refactor: Modify the parameter validation log level to info (#10275)

This commit is contained in:
桔子 2022-07-06 10:15:03 +08:00 committed by Albumen Kevin
parent d82310292e
commit 7e7fc2807c
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {