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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to