michaelm    2003/01/14 05:30:09

  Modified:    src/java/org/apache/cocoon/acting ClearCacheAction.java
  Log:
  Fixed up Log comment and added isEnabled check.
  
  Revision  Changes    Path
  1.3       +3 -1      
xml-cocoon2/src/java/org/apache/cocoon/acting/ClearCacheAction.java
  
  Index: ClearCacheAction.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/acting/ClearCacheAction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ClearCacheAction.java     5 Dec 2002 09:23:33 -0000       1.2
  +++ ClearCacheAction.java     14 Jan 2003 13:30:09 -0000      1.3
  @@ -79,7 +79,9 @@
               cache.clear();
               return EMPTY_MAP;
           } catch (Exception ex) {
  -            getLogger().debug("Exception while trying to Clearing the Cache", ex);
  +         if (this.getLogger().isDebugEnabled()) {
  +                getLogger().debug("Exception while trying to Clear Cache", ex);
  +            }
               return null;
           } finally {
               this.manager.release( cache );
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to