From 98e5a5e6cff3eed2b85efb879844c95dcf189b6d Mon Sep 17 00:00:00 2001 From: Neil Frow <675806+worthydolt@users.noreply.github.com> Date: Wed, 21 Jul 2021 16:24:24 +0100 Subject: [PATCH] APID-187: add logging when returning a 400 for a missing id --- .../controllers/ConfirmationController.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/app/uk/gov/hmrc/apiplatformoutboundsoap/controllers/ConfirmationController.scala b/app/uk/gov/hmrc/apiplatformoutboundsoap/controllers/ConfirmationController.scala index 4b2ee99..5db6989 100644 --- a/app/uk/gov/hmrc/apiplatformoutboundsoap/controllers/ConfirmationController.scala +++ b/app/uk/gov/hmrc/apiplatformoutboundsoap/controllers/ConfirmationController.scala @@ -48,6 +48,7 @@ class ConfirmationController @Inject()(cc: ControllerComponents, NotFound } } else { + logger.warn(s"Unable to find RelatesTo id in [$id]. Request is ${xml}") Future.successful(BadRequest) } }