This is an automated email from the ASF dual-hosted git repository. sseifert pushed a commit to branch experimental/WTES-69-diagnosis in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-osgi-mock.git
commit a2b958390a2e1f458baabd9572bd282b4829cfb8 Author: Stefan Seifert <[email protected]> AuthorDate: Tue Dec 7 08:35:57 2021 +0100 enable minimal debug logging for register/unregister --- .../main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java b/core/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java index 54dc455..ff66942 100644 --- a/core/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java +++ b/core/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java @@ -128,6 +128,7 @@ class MockBundleContext implements BundleContext { @SuppressWarnings("unchecked") @Override public ServiceRegistration registerService(final String[] clazzes, final Object service, final Dictionary properties) { + log.debug("Register {} ({}), bundleContext={}", service, clazzes, this); /* if (log.isDebugEnabled()) { log.debug("Register {} ({}), bundleContext={}", service.getClass().getName(), StringUtils.join(clazzes, ","), this); @@ -206,6 +207,7 @@ class MockBundleContext implements BundleContext { } void unregisterService(MockServiceRegistration<?> registration) { + log.debug("Unregister {} ({}), bundleContext={}", this); /* if (log.isDebugEnabled()) { Object componentInstance = registration.service;
