Author: toad
Date: 2007-06-01 20:26:52 +0000 (Fri, 01 Jun 2007)
New Revision: 13458

Modified:
   trunk/freenet/src/freenet/io/xfer/PartiallyReceivedBulk.java
Log:
Logging

Modified: trunk/freenet/src/freenet/io/xfer/PartiallyReceivedBulk.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PartiallyReceivedBulk.java        
2007-06-01 20:19:25 UTC (rev 13457)
+++ trunk/freenet/src/freenet/io/xfer/PartiallyReceivedBulk.java        
2007-06-01 20:26:52 UTC (rev 13458)
@@ -99,6 +99,8 @@
         * @param offset The start of the data in the buffer.
         */
        void received(int blockNum, byte[] data, int offset, int length) {
+               if(Logger.shouldLog(Logger.MINOR, this))
+                       Logger.minor(this, "Received block "+blockNum);
                BulkTransmitter[] notifyBTs;
                long fileOffset = (long)blockNum * (long)blockSize;
                int bs = (int) Math.min(blockSize, size - fileOffset);


Reply via email to