Ard Schrijvers pushed to branch feature/caching-psp1 at cms-community / 
hippo-site-toolkit


Commits:
98ab2396 by Ard Schrijvers at 2017-01-23T13:38:27+01:00
HSTTWO-3881 improve logging in case of a repo exception

- - - - -


1 changed file:

- 
components/core/src/main/java/org/hippoecm/hst/core/container/DefaultRequestInfoCacheKeyFragmentCreator.java


Changes:

=====================================
components/core/src/main/java/org/hippoecm/hst/core/container/DefaultRequestInfoCacheKeyFragmentCreator.java
=====================================
--- 
a/components/core/src/main/java/org/hippoecm/hst/core/container/DefaultRequestInfoCacheKeyFragmentCreator.java
+++ 
b/components/core/src/main/java/org/hippoecm/hst/core/container/DefaultRequestInfoCacheKeyFragmentCreator.java
@@ -104,7 +104,11 @@ public class DefaultRequestInfoCacheKeyFragmentCreator 
implements RequestInfoCac
             webFilesAntiCacheValue = antiCacheValue;
             return antiCacheValue;
         } catch (RepositoryException e) {
-            log.warn("Cannot get anti-cache value. Use cache key without it.");
+            if (log.isDebugEnabled()) {
+                log.warn("Cannot get anti-cache value. Use cache key without 
it.", e);
+            } else {
+                log.warn("Cannot get anti-cache value. Use cache key without 
it : {}", e.toString());
+            }
             antiCacheValue = Optional.empty();
             webFilesAntiCacheValue = antiCacheValue;
             return antiCacheValue;



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-site-toolkit/commit/98ab239698a20736363369dbd763dc15e509618f
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to