cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation TraversableGenerator.java
Date Tue, 28 Oct 2003 14:09:49 GMT
unico       2003/10/28 06:09:49

  Modified:    src/blocks/repository/java/org/apache/cocoon/generation
                        TraversableGenerator.java
  Log:
  make logging more efficient
  
  Revision  Changes    Path
  1.2       +5 -7      cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation/TraversableGenerator.java
  
  Index: TraversableGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation/TraversableGenerator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TraversableGenerator.java	23 Oct 2003 07:55:49 -0000	1.1
  +++ TraversableGenerator.java	28 Oct 2003 14:09:49 -0000	1.2
  @@ -243,23 +243,21 @@
               rePattern = par.getParameter("root", null);
               this.cacheKeyParList.add(rePattern);
               this.rootRE = (rePattern == null) ? null : new RE(rePattern);
  -            if (this.getLogger().isDebugEnabled()) {
  -                this.getLogger().debug("root pattern: " + rePattern);
  -            }
   
               rePattern = par.getParameter("include", null);
               this.cacheKeyParList.add(rePattern);
               this.includeRE = (rePattern == null) ? null : new RE(rePattern);
  -            if (this.getLogger().isDebugEnabled()) {
  -                this.getLogger().debug("include pattern: " + rePattern);
  -            }
   
               rePattern = par.getParameter("exclude", null);
               this.cacheKeyParList.add(rePattern);
               this.excludeRE = (rePattern == null) ? null : new RE(rePattern);
  +
               if (this.getLogger().isDebugEnabled()) {
  +                this.getLogger().debug("root pattern: " + rePattern);
  +                this.getLogger().debug("include pattern: " + rePattern);
                   this.getLogger().debug("exclude pattern: " + rePattern);
               }
  +            
           } catch (RESyntaxException rese) {
               throw new ProcessingException("Syntax error in regexp pattern '" 
               			                  + rePattern + "'", rese);
  
  
  

Mime
View raw message