You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2023/01/03 22:01:56 UTC
[sling-org-apache-sling-feature-launcher] 01/01: Add debugging for extension handling
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch issue/debug-extensions
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-launcher.git
commit 18ad0287a5fb393808519719ad88e6f8bd6453f9
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Jan 4 00:01:28 2023 +0200
Add debugging for extension handling
---
.../java/org/apache/sling/feature/launcher/impl/FeatureProcessor.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/apache/sling/feature/launcher/impl/FeatureProcessor.java b/src/main/java/org/apache/sling/feature/launcher/impl/FeatureProcessor.java
index be2d1d1..fd3f16e 100644
--- a/src/main/java/org/apache/sling/feature/launcher/impl/FeatureProcessor.java
+++ b/src/main/java/org/apache/sling/feature/launcher/impl/FeatureProcessor.java
@@ -192,7 +192,9 @@ public class FeatureProcessor {
extensions: for(final Extension ext : app.getExtensions()) {
for (ExtensionHandler handler : ServiceLoader.load(ExtensionHandler.class, FeatureProcessor.class.getClassLoader()))
{
+ ctx.getLogger().debug("Loaded handler {}", handler.getClass().getName());
if (handler.handle(new ExtensionContextImpl(ctx, config.getInstallation(), loadedFeatures), ext)) {
+ ctx.getLogger().debug("Handled extension {} with handler {}", ext.getName(), handler.getClass().getName());
continue extensions;
}
}