You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2004/04/26 14:07:57 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/ac/cache SourceCacheImpl.java

andreas     2004/04/26 05:07:56

  Modified:    src/java/org/apache/lenya/ac/cache SourceCacheImpl.java
  Log:
  added some isDebugEnabled() checks
  
  Revision  Changes    Path
  1.4       +11 -4     cocoon-lenya/src/java/org/apache/lenya/ac/cache/SourceCacheImpl.java
  
  Index: SourceCacheImpl.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/ac/cache/SourceCacheImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SourceCacheImpl.java	8 Mar 2004 16:48:21 -0000	1.3
  +++ SourceCacheImpl.java	26 Apr 2004 12:07:56 -0000	1.4
  @@ -87,7 +87,9 @@
           try {
   
               if (cachedObject != null) {
  -                getLogger().debug("Found cached object [" + cachedObject + "]");
  +                if (getLogger().isDebugEnabled()){
  +                    getLogger().debug("Found cached object [" + cachedObject + "]"); 
  +                }
                   SourceValidity cachedValidity = cachedObject.getValidityObject();
   
                   int result = cachedValidity.isValid();
  @@ -137,9 +139,13 @@
                           sourceValidity = getSourceValidity(sourceUri);
                       }
                       if (sourceValidity != null) {
  -                        getLogger().debug("Source validity is not null.");
  +                        if (getLogger().isDebugEnabled()) {
  +                            getLogger().debug("Source validity is not null.");
  +                        }
                       } else {
  -                        getLogger().debug("Source validity is null - not caching.");
  +                        if (getLogger().isDebugEnabled()) {
  +                            getLogger().debug("Source validity is null - not caching.");
  +                        }
                           key = null;
                       }
                   }
  @@ -170,6 +176,7 @@
       /**
        * Returns the input stream to read a source from.
        * @param sourceUri The URI of the source.
  +     * @param builder The input stream builder that should be used.
        * @return An object.
        * @throws MalformedURLException when an error occurs.
        * @throws IOException when an error occurs.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org