This is an automated email from the ASF dual-hosted git repository.

pauls pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-resolver.git


The following commit(s) were added to refs/heads/master by this push:
     new ef8d978  SLING-9406 - Add bundled script support to the servlets 
resolver
ef8d978 is described below

commit ef8d9787e1bd068418ef63b870e2a110c2cc580e
Author: Karl Pauls <[email protected]>
AuthorDate: Thu May 21 00:55:51 2020 +0200

    SLING-9406 - Add bundled script support to the servlets resolver
    
    * change the error into a warning when scripts are not found
---
 .../resolver/bundle/tracker/internal/BundledScriptTracker.java         | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/servlets/resolver/bundle/tracker/internal/BundledScriptTracker.java
 
b/src/main/java/org/apache/sling/servlets/resolver/bundle/tracker/internal/BundledScriptTracker.java
index a68f857..57b5ada 100644
--- 
a/src/main/java/org/apache/sling/servlets/resolver/bundle/tracker/internal/BundledScriptTracker.java
+++ 
b/src/main/java/org/apache/sling/servlets/resolver/bundle/tracker/internal/BundledScriptTracker.java
@@ -195,12 +195,11 @@ public class BundledScriptTracker implements 
BundleTrackerCustomizer<List<Servic
                         if 
(executable.getPath().equals(bundledRenderUnitCapability.getPath())) {
                             
properties.put(ServletResolverConstants.SLING_SERVLET_PATHS, 
executable.getPath());
                         }
-                        properties.put(BundledHooks.class.getName(), "true");
                         regs.add(
                             register(bundle.getBundleContext(), new 
BundledScriptServlet(inheritanceChain, executable),properties)
                         );
                     } else {
-                        LOGGER.error(String.format("Unable to locate an 
executable for capability %s.", cap));
+                        LOGGER.warn(String.format("Unable to locate an 
executable for capability %s.", cap));
                     }
 
                     return regs.stream();

Reply via email to