You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2001/12/24 21:32:12 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/components/lucene SimpleLuceneXMLIndexerImpl.java

vgritsenko    01/12/24 12:32:12

  Modified:    src/org/apache/cocoon/components/lucene
                        SimpleLuceneXMLIndexerImpl.java
  Log:
  Add some debug info
  
  Revision  Changes    Path
  1.2       +8 -1      xml-cocoon2/src/org/apache/cocoon/components/lucene/SimpleLuceneXMLIndexerImpl.java
  
  Index: SimpleLuceneXMLIndexerImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/lucene/SimpleLuceneXMLIndexerImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleLuceneXMLIndexerImpl.java	2001/12/11 23:00:24	1.1
  +++ SimpleLuceneXMLIndexerImpl.java	2001/12/24 20:32:12	1.2
  @@ -137,6 +137,10 @@
         String contentType = contentURLConnection.getContentType();
         if (contentType != null &&
           allowedContentType.contains( contentType )) {
  +
  +        if (getLogger().isDebugEnabled()) {
  +            getLogger().debug("Indexing " + contentURL + " (" + contentType + ")");
  +        }
     
           LuceneIndexContentHandler luceneIndexContentHandler = new LuceneIndexContentHandler();
           indexDocument( contentURLConnection, luceneIndexContentHandler );
  @@ -151,10 +155,13 @@
             d.add(new Field( UID_FIELD, uid(contentURLConnection), false, true, false));
           }
           documents = luceneIndexContentHandler.allDocuments();
  +      } else {
  +        if (getLogger().isDebugEnabled()) {
  +            getLogger().debug("Ignoring " + contentURL + " (" + contentType + ")");
  +        }
         }
       } catch (IOException ioe) {
         throw new ProcessingException( "Cannot read URL " + url, ioe );
  -    } finally {
       }
     }
   
  
  
  

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