mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Adding an info log to indicate the success of publishing a given API
This commit is contained in:
parent
add470c483
commit
2b26ad08c2
@ -62,10 +62,9 @@ public class APIRegistrationStartupObserver implements ServerStartupObserver {
|
||||
try {
|
||||
API api = DeviceManagerUtil.getAPI(apiConfig);
|
||||
DeviceManagementDataHolder.getInstance().getApiPublisherService().publishAPI(api);
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("Successfully published API '" + apiConfig.getName() + "' with the context '" +
|
||||
|
||||
log.info("Successfully published API '" + apiConfig.getName() + "' with the context '" +
|
||||
apiConfig.getContext() + "' and version '" + apiConfig.getVersion() + "'");
|
||||
}
|
||||
} catch (APIManagementException e) {
|
||||
log.error("Error occurred while publishing API '" + apiConfig.getName() + "' with the context '" +
|
||||
apiConfig.getContext() + "' and version '" + apiConfig.getVersion() + "'");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user