Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add success info log where applicable when several retry attempts to internal API calls failed initially. #12186

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@
throw new DataLoadingException("Error while retrieving "
+ path + ". Received response with status code "
+ httpResponse.getStatusLine().getStatusCode());
} else if (retryCount > 0) {
log.info("Successfully retrieved " + path);

Check warning on line 509 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java#L509

Added line #L509 was not covered by tests
}
retry = false;
} catch (IOException | DataLoadingException ex) {
Expand Down
Loading