Log IOException from assessCaptcha
This commit is contained in:
parent
374fe087bc
commit
dd7a20a774
|
@ -397,8 +397,9 @@ public class VerificationController {
|
||||||
Tag.of(SCORE_TAG_NAME, assessmentResult.getScoreString())))
|
Tag.of(SCORE_TAG_NAME, assessmentResult.getScoreString())))
|
||||||
.increment();
|
.increment();
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (final IOException e) {
|
||||||
throw new ServerErrorException(Response.Status.SERVICE_UNAVAILABLE);
|
logger.error("error assessing captcha", e);
|
||||||
|
throw new ServerErrorException(Response.Status.SERVICE_UNAVAILABLE, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (assessmentResult.isValid(captchaScoreThreshold)) {
|
if (assessmentResult.isValid(captchaScoreThreshold)) {
|
||||||
|
|
Loading…
Reference in New Issue