From 04cec6a9aa085bba0736cc6d55cb6c8b4d54a0a0 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 14 Dec 2020 12:33:01 +0100 Subject: set TransactionId as MDC property in case of a found but invalid pendingRequest --- .../java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'eaaf_core/src/main/java') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java index 86c50be0..72d229a1 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/RequestStorage.java @@ -74,6 +74,13 @@ public class RequestStorage implements IRequestStorage { log.debug("Searching for expired pendingRequest with Id: {} ... ", e.getInvalidInternalPendingReqId()); invalidPendingRequest = transactionStorage.get(e.getInvalidInternalPendingReqId(), IRequest.class); + + // If pendingReq. was found, set transactionID and sessionID to Logger + if (invalidPendingRequest != null) { + TransactionIdUtils.setAllLoggingVariables(invalidPendingRequest); + + } + log.debug("{} expired pendingReq. Set it into Exception ...", invalidPendingRequest != null ? "Find" : "Find NO "); -- cgit v1.2.3