Author: toad
Date: 2008-11-26 15:29:49 +0000 (Wed, 26 Nov 2008)
New Revision: 23879

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
Logging.


Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-11-26 
15:29:29 UTC (rev 23878)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-11-26 
15:29:49 UTC (rev 23879)
@@ -85,6 +85,7 @@
                        this.creationTime = now;
                        this.osIndex = 0;
                        this.tbis = new Vector<TempBucketInputStream>();
+                       if(logMINOR) Logger.minor(this, "Created "+this);
                }
                
                private synchronized void closeInputStreams(boolean forFree) {
@@ -149,7 +150,10 @@
                        if(osIndex > 0)
                                throw new IOException("Only one OutputStream 
per bucket!");
                        hasWritten = true;
-                       return new TempBucketOutputStream(++osIndex);
+                       OutputStream os = new TempBucketOutputStream(++osIndex);
+                       if(logMINOR)
+                               Logger.minor(this, "Got "+os+" for "+this);
+                       return os;
                }
 
                private class TempBucketOutputStream extends OutputStream {
@@ -233,7 +237,8 @@
                                throw new IOException("No OutputStream has been 
openned! Why would you want an InputStream then?");
                        TempBucketInputStream is = new 
TempBucketInputStream(osIndex);
                        tbis.add(is);
-                       
+                       if(logMINOR)
+                               Logger.minor(this, "Got "+is+" for "+this);
                        return is;
                }
                

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to