Skip to content

Commit

Permalink
Merge pull request #161 from Osara-B/master
Browse files Browse the repository at this point in the history
Update info log of bundle activation to debug log
  • Loading branch information
darshanasbg authored Aug 20, 2024
2 parents 06c7b40 + 6bcfdd9 commit c616ea9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
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

0 comments on commit c616ea9

Please sign in to comment.