[HippoCMS-svn] [20622] hippo-documentation/hst_docs: HSTTWODOCS-158: Set log level to debug

View: New views
1 Messages — Rating Filter:   Alert me  

[HippoCMS-svn] [20622] hippo-documentation/hst_docs: HSTTWODOCS-158: Set log level to debug

by dtaylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 20622
Author:   bvdschans
Date:     2009-11-10 16:47:56 +0100 (Tue, 10 Nov 2009)
Log Message:
-----------
HSTTWODOCS-158: Set log level to debug

Modified Paths:
--------------
    hippo-documentation/hst_docs/trunk/site/src/main/java/org/hippoecm/hst_docs/util/DemoRepoBasedMenuItem.java

Modified: hippo-documentation/hst_docs/trunk/site/src/main/java/org/hippoecm/hst_docs/util/DemoRepoBasedMenuItem.java
===================================================================
--- hippo-documentation/hst_docs/trunk/site/src/main/java/org/hippoecm/hst_docs/util/DemoRepoBasedMenuItem.java 2009-11-10 15:36:43 UTC (rev 20621)
+++ hippo-documentation/hst_docs/trunk/site/src/main/java/org/hippoecm/hst_docs/util/DemoRepoBasedMenuItem.java 2009-11-10 15:47:56 UTC (rev 20622)
@@ -47,7 +47,9 @@
         this.hstLink = request.getRequestContext().getHstLinkCreator().create(repoItem, request.getRequestContext());
 
         if ( currentContentBean == null ) {
-          log.error("Error: currentContentBean is null. for repoItem " + repoItem.getName() + " and parentItem " + parentItem.getName() + "." );
+          if (log.isDebugEnabled()) {
+            log.debug("Error: currentContentBean is null. for repoItem " + repoItem.getName() + " and parentItem " + parentItem.getName() + "." );
+          }
           return;
         }
 

_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@...
http://lists.hippo.nl/mailman/listinfo/hippocms-svn