Author: toad
Date: 2008-07-17 17:35:26 +0000 (Thu, 17 Jul 2008)
New Revision: 21177

Modified:
   
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
Log:
Logging

Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java  
    2008-07-17 17:34:03 UTC (rev 21176)
+++ 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java  
    2008-07-17 17:35:26 UTC (rev 21177)
@@ -595,12 +595,14 @@
        }

        public void removeBlockNum(int blockNum) {
+               if(logMINOR) Logger.minor(this, "Removing block "+blockNum+" 
from "+this);
                synchronized(segment) {
                        for(int i=0;i<blockNums.size();i++) {
                                Integer token = (Integer) blockNums.get(i);
                                int num = ((Integer)token).intValue();
                                if(num == blockNum) {
                                        blockNums.remove(i);
+                                       if(logMINOR) Logger.minor(this, 
"Removed block "+blockNum+" from "+this);
                                        break;
                                }
                        }


Reply via email to