Improve logging message

This commit is contained in:
Mohamed Rashd 2022-04-29 17:53:42 +05:30
parent 695f4c4a18
commit a98e1e4b24

View File

@ -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";
}