Author: toad
Date: 2008-03-25 15:55:56 +0000 (Tue, 25 Mar 2008)
New Revision: 18784

Modified:
   trunk/freenet/src/freenet/client/async/ClientRequester.java
Log:
Logging

Modified: trunk/freenet/src/freenet/client/async/ClientRequester.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequester.java 2008-03-25 
15:34:02 UTC (rev 18783)
+++ trunk/freenet/src/freenet/client/async/ClientRequester.java 2008-03-25 
15:55:56 UTC (rev 18784)
@@ -75,6 +75,7 @@
                        else
                                Logger.error(this, "addBlock() but set 
finalized! on "+this, new Exception("error"));
                totalBlocks++;
+               if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, 
"addBlock(): total="+totalBlocks+" successful="+successfulBlocks+" 
failed="+failedBlocks+" required="+minSuccessBlocks); 
        }

        public synchronized void addBlocks(int num) {
@@ -84,6 +85,7 @@
                        else
                                Logger.error(this, "addBlocks() but set 
finalized! on "+this, new Exception("error"));
                totalBlocks+=num;
+               if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, 
"addBlocks("+num+"): total="+totalBlocks+" successful="+successfulBlocks+" 
failed="+failedBlocks+" required="+minSuccessBlocks); 
        }

        public void completedBlock(boolean dontNotify) {


Reply via email to