crafterm    2002/10/23 09:27:49

  Modified:    src/java/org/apache/cocoon/components/pipeline/impl
                        AbstractCachingProcessingPipeline.java
  Log:
  AbstractCachingProcessingPipeline logging improvement patch.
  
  PR: Bugzilla#13885
  Obtained By: Michael Melhem <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.9       +13 -4     
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java
  
  Index: AbstractCachingProcessingPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AbstractCachingProcessingPipeline.java    11 Oct 2002 08:36:30 -0000      1.8
  +++ AbstractCachingProcessingPipeline.java    23 Oct 2002 16:27:49 -0000      1.9
  @@ -405,7 +405,10 @@
                   boolean responseIsValid = true;
                   boolean responseIsUsable = true;
                   if (this.getLogger().isDebugEnabled()) {
  -                    this.getLogger().debug("Found cached response for '" + 
environment.getURI() + "'.");
  +                    this.getLogger().debug(
  +                        "Found cached response for '" + environment.getURI() + 
  +                        "' using key: " + cachedPipelineKey
  +                    );
                   }
                   this.cachedResponse = response.getResponse();
                   SourceValidity[] validities = response.getValidityObjects();
  @@ -502,7 +505,10 @@
                   }
               } else {
                   if (this.getLogger().isDebugEnabled()) {
  -                    this.getLogger().debug("Cached response not found for '" + 
environment.getURI() + "'.");
  +                    this.getLogger().debug(
  +                        "Cached response not found for '" + environment.getURI() + 
  +                        "' using key: " +  cachedPipelineKey
  +                    );
                   }
                   // try a shorter key
                   // FIXME (CZ) calculation of PPK
  @@ -635,7 +641,10 @@
   
                   if (cachedObject != null) {
                       if (this.getLogger().isDebugEnabled()) {
  -                        this.getLogger().debug("Found cached response for '" + 
environment.getURI() + "'.");
  +                        this.getLogger().debug(
  +                            "Found cached response for '" + environment.getURI() +
  +                            "' using key: " + pcKey
  +                        );
                       }
                       SourceValidity[] validities = cachedObject.getValidityObjects();
                       if (validities == null || validities.length != 1) {
  
  
  

----------------------------------------------------------------------
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