Author: batosai
Date: 2008-08-24 12:29:53 +0000 (Sun, 24 Aug 2008)
New Revision: 22129

Modified:
   trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java
Log:
Logging (bug #2533).

Modified: trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java
===================================================================
--- trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java 2008-08-24 12:05:08 UTC 
(rev 22128)
+++ trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java 2008-08-24 12:29:53 UTC 
(rev 22129)
@@ -56,11 +56,13 @@
                fetchContext.maxSplitfileBlockRetries = -1; // retry forever
                fetchContext.maxNonSplitfileRetries = -1; // retry forever
                requests.add(client.fetch(uri, -1, this, this, fetchContext));
+               Logger.debug(this, "Start fetching identity "+uri.toString());
        }

        public void stop() {
                Iterator<ClientGetter> i = requests.iterator();
                while (i.hasNext()) i.next().cancel();
+               Logger.debug(this, "Stopped all current requests");
        }

        @Override
@@ -108,6 +110,7 @@
                        new IdentityParser(db, wot, client, 
this).parse(result.asBucket().getInputStream(), state.getURI());
                        db.commit();            
                        
state.restart(state.getURI().setSuggestedEdition(state.getURI().getSuggestedEdition()
 + 1));
+                       Logger.debug(this, "Sucessfully fetched identity "+ 
state.getURI().toString());
                } catch (Exception e) {
                        Logger.error(this, "Parsing failed for "+ 
state.getURI(), e);
                }


Reply via email to