cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/acting ClearCacheAction.java
Date Tue, 14 Jan 2003 13:30:09 GMT
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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message