From ed9f175695fbdbd6fa43b009a1098e71db2465cd Mon Sep 17 00:00:00 2001 From: Rajiv Senthilnathan Date: Thu, 4 Jan 2024 10:19:04 -0500 Subject: [PATCH] Log assessment response (#383) --- pkg/verification/captcha/captcha.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/verification/captcha/captcha.go b/pkg/verification/captcha/captcha.go index 11962375..493064e5 100644 --- a/pkg/verification/captcha/captcha.go +++ b/pkg/verification/captcha/captcha.go @@ -74,11 +74,12 @@ func (c Helper) CompleteAssessment(ctx *gin.Context, cfg configuration.Registrat // Get the risk score and the reason(s). // For more information on interpreting the assessment, // see: https://cloud.google.com/recaptcha-enterprise/docs/interpret-assessment - log.Info(ctx, fmt.Sprintf("The reCAPTCHA assessment score is: %.1f", response.RiskAnalysis.Score)) + log.Info(ctx, fmt.Sprintf("reCAPTCHA assessment score: %.1f", response.RiskAnalysis.Score)) for _, reason := range response.RiskAnalysis.Reasons { log.Info(ctx, fmt.Sprintf("Risk analysis reason: %s", reason.String())) } + log.Info(ctx, fmt.Sprintf("Assessment Response: %+v", response)) return response.RiskAnalysis.Score, nil }