From 2b26ad08c2a356c33de533595936422170fadb8c Mon Sep 17 00:00:00 2001 From: prabathabey Date: Mon, 30 Mar 2015 19:28:26 +0530 Subject: [PATCH] Adding an info log to indicate the success of publishing a given API --- .../mgt/core/api/mgt/APIRegistrationStartupObserver.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/api/mgt/APIRegistrationStartupObserver.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/api/mgt/APIRegistrationStartupObserver.java index 3aed51ae4b..c85deff8e4 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/api/mgt/APIRegistrationStartupObserver.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/api/mgt/APIRegistrationStartupObserver.java @@ -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() + "'");