Fixing improper API name getting displayed when an API is republished

revert-70aa11f8
prabathabey 10 years ago
parent 36dea72e02
commit 0583695338

@ -48,9 +48,10 @@ public class APIPublisherServiceImpl implements APIPublisherService {
log.info("Successfully published API '" + api.getId().getApiName() + "' with context '" + log.info("Successfully published API '" + api.getId().getApiName() + "' with context '" +
api.getContext() + "' and version '" + api.getId().getVersion() + "'"); api.getContext() + "' and version '" + api.getId().getVersion() + "'");
} else { } else {
log.info("An API already exists with the name '" + api.getId() + "', context '" + provider.updateAPI(api);
api.getContext() + "' and verison '" + api.getId().getVersion() + log.info("An API already exists with the name '" + api.getId().getApiName() + "', context '" +
"'. Thus, the API config is not re-published"); api.getContext() + "' and version '" + api.getId().getVersion() +
"'. Thus, the API config is updated");
} }
} else { } else {
log.error("API provider configured for the given API configuration is null. Thus, the API is not " + log.error("API provider configured for the given API configuration is null. Thus, the API is not " +

Loading…
Cancel
Save