Author: toad
Date: 2007-08-29 19:31:56 +0000 (Wed, 29 Aug 2007)
New Revision: 14919

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
logging

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java      2007-08-29 18:50:36 UTC (rev 
14918)
+++ trunk/plugins/XMLSpider/XMLSpider.java      2007-08-29 19:31:56 UTC (rev 
14919)
@@ -255,6 +255,7 @@
                sizeOfURIs.put(uri.toString(), new Long(data.size()));
                mimeOfURIs.put(uri.toString(), mimeType);
                PageCallBack page = new PageCallBack((Integer) uriIds.get(uri));
+               Logger.minor(this, "Successful: "+uri+" : "+page.id);
                inlinks.put(page.id, new Vector());
                outlinks.put(page.id, new Vector());
                /*
@@ -263,6 +264,7 @@
                 */

                try {
+                       Logger.minor(this, "Filtering "+uri+" : "+page.id);
                        ContentFilter.filter(data, ctx.bucketFactory, mimeType, 
uri.toURI("http://127.0.0.1:8888/";), page);
                } catch (UnsafeContentTypeException e) {
                        return; // Ignore
@@ -277,6 +279,7 @@

        public void onFailure(FetchException e, ClientGetter state) {
                FreenetURI uri = state.getURI();
+               Logger.minor(this, "Failed: "+uri+" : "+e);

                synchronized (this) {
                        runningFetchesByURI.remove(uri);
@@ -1012,6 +1015,7 @@

                public void foundURI(FreenetURI uri){

+                       Logger.minor(this, "foundURI "+uri+" on "+id);
                        queueURI(uri);
                        Integer iduri = (Integer) uriIds.get(uri);
 /*
@@ -1051,6 +1055,8 @@


                public void onText(String s, String type, URI baseURI){
+                       
+                       Logger.minor(this, "onText on "+id+" ("+baseURI+")");

                        if((type != null) && (type.length() != 0) && 
type.toLowerCase().equals("title")
                                        && (s != null) && (s.length() != 0) && 
(s.indexOf('\n') < 0)) {


Reply via email to