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

Update info log of bundle activation to debug log #161

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
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 @@ -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 ");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand Down
Loading