From 976f41eb973cb89ec8988f1f5ccbcdf6d7454cc8 Mon Sep 17 00:00:00 2001 From: john-tco <135222889+john-tco@users.noreply.github.com> Date: Tue, 19 Dec 2023 14:21:53 +0000 Subject: [PATCH] Add log before throwing invalid redirect error (#83) * add log * fix log --- .../gap/applybackend/service/GrantAdvertService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/gov/cabinetoffice/gap/applybackend/service/GrantAdvertService.java b/src/main/java/gov/cabinetoffice/gap/applybackend/service/GrantAdvertService.java index 7433cea6..8bca7917 100644 --- a/src/main/java/gov/cabinetoffice/gap/applybackend/service/GrantAdvertService.java +++ b/src/main/java/gov/cabinetoffice/gap/applybackend/service/GrantAdvertService.java @@ -109,6 +109,7 @@ public void validateGrantWebpageUrl(final String contentfulSlug, final String gr String url = this.getGrantWebpageUrl(contentfulEntry); if (!url.equals(grantWebpageUrl)) { + log.error("Grant webpage url does not match the url in contentful - expected: " + url + " but received: " + grantWebpageUrl); throw new NotFoundException("Grant webpage url does not match the url in contentful"); } } catch (CDAResourceNotFoundException error) {