reschke commented on code in PR #202:
URL: 
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/202#discussion_r2310417098


##########
src/main/java/org/apache/sling/resourceresolver/impl/mapping/AliasHandler.java:
##########
@@ -131,12 +131,22 @@ protected void initializeAliases() {
         // the map here
         this.aliasMapsMap = UNITIALIZED_MAP;
 
-        try {
-            // already disposed?
-            if (this.factory == null) {
-                return;
-            }
+        // already disposed?
+        if (this.factory == null) {
+            log.error("Can't initialize aliases when MapConfigurationProvider 
is null");
+            return;
+        }
 
+        log.info(
+                "Initializing Aliases ({}={}, {}={}, {}={})",
+                "alias_cache_in_background",
+                this.factory.isAliasCacheInitInBackground(),
+                "optimize_alias_resolution",
+                this.factory.isOptimizeAliasResolutionEnabled(),
+                "allowed_alias_locations",
+                this.factory.getAllowedAliasLocations());

Review Comment:
   spotless...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to