From d9cf31fde52fb4b6a2da923b14f6ae006019eede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mili=C4=87?= Date: Thu, 11 Jul 2024 10:38:59 +0200 Subject: [PATCH] docfix/Put debug logging at ConsentUtil 2 --- obp-api/src/main/scala/code/api/util/ConsentUtil.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/obp-api/src/main/scala/code/api/util/ConsentUtil.scala b/obp-api/src/main/scala/code/api/util/ConsentUtil.scala index 613313267f..d17cbd25cb 100644 --- a/obp-api/src/main/scala/code/api/util/ConsentUtil.scala +++ b/obp-api/src/main/scala/code/api/util/ConsentUtil.scala @@ -316,7 +316,7 @@ object Consent extends MdcLoggable { JwtUtil.getSignedPayloadAsJson(consentIdAsJwt) match { case Full(jsonAsString) => try { - logger.debug(s"Start of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]") + logger.debug(s"Start of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]: $jsonAsString") val consent = net.liftweb.json.parse(jsonAsString).extract[ConsentJWT] logger.debug(s"End of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]: $consent") checkConsent(consent, consentIdAsJwt, calContext) match { // Check is it Consent-JWT expired @@ -373,7 +373,7 @@ object Consent extends MdcLoggable { JwtUtil.getSignedPayloadAsJson(consentAsJwt) match { case Full(jsonAsString) => try { - logger.debug(s"Start of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]") + logger.debug(s"Start of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]: $jsonAsString") val consent = net.liftweb.json.parse(jsonAsString).extract[ConsentJWT] logger.debug(s"End of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]: $consent") // Set Consumer into Call Context @@ -494,7 +494,7 @@ object Consent extends MdcLoggable { JwtUtil.getSignedPayloadAsJson(storedConsent.jsonWebToken) match { case Full(jsonAsString) => try { - logger.debug(s"Start of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]") + logger.debug(s"Start of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]: $jsonAsString") val consent = net.liftweb.json.parse(jsonAsString).extract[ConsentJWT] logger.debug(s"End of net.liftweb.json.parse(jsonAsString).extract[ConsentJWT]: $consent") checkConsent(consent, storedConsent.jsonWebToken, updatedCallContext) match { // Check is it Consent-JWT expired