diff --git a/components/org.wso2.carbon.mex/src/main/java/org/wso2/carbon/mex/internal/Office365SupportMexComponent.java b/components/org.wso2.carbon.mex/src/main/java/org/wso2/carbon/mex/internal/Office365SupportMexComponent.java index 88c57062..a4945de1 100644 --- a/components/org.wso2.carbon.mex/src/main/java/org/wso2/carbon/mex/internal/Office365SupportMexComponent.java +++ b/components/org.wso2.carbon.mex/src/main/java/org/wso2/carbon/mex/internal/Office365SupportMexComponent.java @@ -28,19 +28,23 @@ import org.osgi.service.component.annotations.ReferencePolicy; @Component( - name = "carbon.mex.component", - immediate = true) + name = "carbon.mex.component", + immediate = true) public class Office365SupportMexComponent { private static final Log log = LogFactory.getLog(Office365SupportMexComponent.class); @Activate protected void activate(ComponentContext ctxt) { - log.info("Office365Support MexServiceComponent bundle activated successfully.."); + + if (log.isDebugEnabled()) { + log.debug("Office365Support MexServiceComponent bundle activated successfully."); + } } @Deactivate protected void deactivate(ComponentContext ctxt) { + if (log.isDebugEnabled()) { log.debug("Office365Support MexServiceComponent is deactivated "); } diff --git a/components/org.wso2.carbon.mex2/src/main/java/org/wso2/carbon/mex2/internal/DynamicCRMCustomMexComponent.java b/components/org.wso2.carbon.mex2/src/main/java/org/wso2/carbon/mex2/internal/DynamicCRMCustomMexComponent.java index 1579b08e..0c05663c 100644 --- a/components/org.wso2.carbon.mex2/src/main/java/org/wso2/carbon/mex2/internal/DynamicCRMCustomMexComponent.java +++ b/components/org.wso2.carbon.mex2/src/main/java/org/wso2/carbon/mex2/internal/DynamicCRMCustomMexComponent.java @@ -28,19 +28,23 @@ import org.osgi.service.component.annotations.ReferencePolicy; @Component( - name = "carbon.mex2.component", - immediate = true) + name = "carbon.mex2.component", + immediate = true) public class DynamicCRMCustomMexComponent { private static final Log log = LogFactory.getLog(DynamicCRMCustomMexComponent.class); @Activate protected void activate(ComponentContext ctxt) { - log.info("DynamicCRMSupport MexServiceComponent bundle activated successfully."); + + if (log.isDebugEnabled()) { + log.debug("DynamicCRMSupport MexServiceComponent bundle activated successfully."); + } } @Deactivate protected void deactivate(ComponentContext ctxt) { + if (log.isDebugEnabled()) { log.debug("DynamicCRMSupport MexServiceComponent is deactivated."); }