Log json response for connector request failure
@@ -167,7 +167,7 @@ public abstract class RestApiConnector {
}
if (status.getStatusCode() >= 400) {
- log.info("Unable to get response using: {} got status code {}", url, status.getStatusCode());
+ log.info("Unable to get response using {} with status code {}: {}", url, status.getStatusCode(), jsonStr);
JsonElement jsonRet = GSON.fromJson(jsonStr, JsonArray.class);
throw new RestApiProcessingException(getFirstErrorMessage("Failed to retrieve response from ", jsonRet));
}
