Skip to content

Commit e80e929

Browse files
authored
Merge pull request #2613 from constantine2nd/develop
Add logging for experimental consent user operation
2 parents bcfa507 + 5aa003a commit e80e929

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

obp-api/src/main/scala/code/api/util/ConsentUtil.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ object Consent extends MdcLoggable {
437437
}
438438
if (cc.onBehalfOfUser.nonEmpty &&
439439
APIUtil.getPropsAsBoolValue(nameOfProperty = "experimental_become_user_that_created_consent", defaultValue = false)) {
440+
logger.info("experimental_become_user_that_created_consent = true")
441+
logger.info(s"${cc.onBehalfOfUser.map(_.userId).getOrElse("")} is logged on instead of Consent user")
440442
Future(cc.onBehalfOfUser, Some(cc)) // Just propagate on behalf of user back
441443
} else {
442444
// 1. Get or Create a User

0 commit comments

Comments
 (0)