From a98e1e4b241be9a381f5bc4d66de566ea3030194 Mon Sep 17 00:00:00 2001 From: Mohamed Rashd Date: Fri, 29 Apr 2022 17:53:42 +0530 Subject: [PATCH] Improve logging message --- .../serviceprovider/impl/WSO2IAMSPApplicationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java b/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java index 2dc5a91e27..4c7936746d 100644 --- a/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java +++ b/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/identityserver/serviceprovider/impl/WSO2IAMSPApplicationService.java @@ -93,7 +93,7 @@ public class WSO2IAMSPApplicationService implements ISServiceProviderApplication * @return constructed error message */ private String constructErrorMessage(HttpResponse response) { - String msg = "Error occurred while calling SP Applications API"; + String msg = "Error occurred while calling SP Applications API. Response status: " + response.getStatusLine().getStatusCode(); if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) { msg += ". Make sure provided identity Server credentials are valid"; }