From dec97869f4afa64f0d54b751c82e4ec4fc0de990 Mon Sep 17 00:00:00 2001 From: Chinmoy Chakraborty Date: Tue, 5 Dec 2023 01:39:33 +0530 Subject: [PATCH] Added logs to CommonService for fusionAuth. --- .../java/com/uci/orchestrator/Service/CommonService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/uci/orchestrator/Service/CommonService.java b/src/main/java/com/uci/orchestrator/Service/CommonService.java index 1f2cede..493cf7f 100644 --- a/src/main/java/com/uci/orchestrator/Service/CommonService.java +++ b/src/main/java/com/uci/orchestrator/Service/CommonService.java @@ -343,6 +343,8 @@ public Mono apply(Pair result) { from.setEncryptedDeviceID(deviceID); xmsg.setFrom(from); ClientResponse response = botService.fusionAuthClient.retrieveUserByUsername(deviceID); + log.info("CommonService::UpdateUser: response.wasSuccessful: " + response.wasSuccessful()); + log.info("CommonService::UpdateUser: isUserRegistered: " + isUserRegistered(response, appID)); if (response.wasSuccessful() && isUserRegistered(response, appID)) { redisCacheService.setFAUserIDForAppCache(getFACacheName(deviceID, appID), response.successResponse.user.id.toString()); return Mono.just(xmsg); @@ -384,7 +386,8 @@ private String getFAUserIdForApp(String deviceID, UUID appID) { if (userID == null || userID.isEmpty()) { ClientResponse response = botService.fusionAuthClient.retrieveUserByUsername(deviceID); - + log.info("CommonService::UpdateUser: response.wasSuccessful: " + response.wasSuccessful()); + log.info("CommonService::UpdateUser: isUserRegistered: " + isUserRegistered(response, appID)); if (response.wasSuccessful() && isUserRegistered(response, appID)) { userID = response.successResponse.user.id.toString(); redisCacheService.setFAUserIDForAppCache(getFACacheName(deviceID, appID), userID);