From 217dd91e82b5d75129ec9d3fde8ba6ecd664dca3 Mon Sep 17 00:00:00 2001 From: cp-dharti-r Date: Wed, 24 Apr 2024 11:20:52 +0530 Subject: [PATCH] Added logs in helper --- .github/workflows/deploy-backend-dev.yml | 2 +- utils/helper.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-backend-dev.yml b/.github/workflows/deploy-backend-dev.yml index 465fa4d30..4f8915770 100644 --- a/.github/workflows/deploy-backend-dev.yml +++ b/.github/workflows/deploy-backend-dev.yml @@ -3,7 +3,7 @@ name: DeployBackendDev on: push: branches: - - "master" + - "fix-recaptcha-issue-in-jobs" jobs: deploy-backend-dev: diff --git a/utils/helper.go b/utils/helper.go index 0e9743c66..6d80a0094 100755 --- a/utils/helper.go +++ b/utils/helper.go @@ -54,12 +54,14 @@ func GetAWSIAMUserSession() (*session.Session, error) { func (repo *utilsRepository) VerifyRecaptcha(token string) (bool, error) { + log.Info(recaptchaBase64) + //create recaptcha assessment and verify token ctx := context.Background() credBytes, err := b64.StdEncoding.DecodeString(recaptchaBase64) if err != nil { - log.Error(err) + log.Error("Error while decoding recaptcha: ", err) return false, err }