From dd7a20a774f0303a68200341a5873e73f06fc835 Mon Sep 17 00:00:00 2001 From: Ameya Lokare Date: Fri, 13 Sep 2024 13:37:37 -0700 Subject: [PATCH] Log IOException from assessCaptcha --- .../textsecuregcm/controllers/VerificationController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/VerificationController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/VerificationController.java index 7fb61b380..7fc4d1037 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/VerificationController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/VerificationController.java @@ -397,8 +397,9 @@ private VerificationSession handleCaptcha( Tag.of(SCORE_TAG_NAME, assessmentResult.getScoreString()))) .increment(); - } catch (IOException e) { - throw new ServerErrorException(Response.Status.SERVICE_UNAVAILABLE); + } catch (final IOException e) { + logger.error("error assessing captcha", e); + throw new ServerErrorException(Response.Status.SERVICE_UNAVAILABLE, e); } if (assessmentResult.isValid(captchaScoreThreshold)) {