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:28:19 UTC

[sling-org-apache-sling-feature-launcher] 01/02: SLING-11747 - Unable to override the built-in content package feature model extension

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 6545b7f8480ac40df25726cc26f92983001738e0
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Jan 4 00:01:28 2023 +0200

    SLING-11747 - Unable to override the built-in content package feature model extension
    
    Add debugging information for loading and executing content extensions.
---
 .../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;
                 }
             }