Author: toad
Date: 2008-03-21 20:08:38 +0000 (Fri, 21 Mar 2008)
New Revision: 18692

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

Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-03-21 
20:07:10 UTC (rev 18691)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-03-21 
20:08:38 UTC (rev 18692)
@@ -250,7 +250,7 @@
                                _packetsInFlight--;
                                PacketThrottle.this.notifyAll();
                        }
-                       if(logMINOR) Logger.minor(this, "Removed packet: acked 
for "+this+" for "+PacketThrottle.this);
+                       if(logMINOR) Logger.minor(this, "Removed packet: acked 
for "+this);
                }

                public void disconnected() {
@@ -260,7 +260,7 @@
                                _packetsInFlight--;
                                PacketThrottle.this.notifyAll();
                        }
-                       if(logMINOR) Logger.minor(this, "Removed packet: 
disconnected for "+this+" for "+PacketThrottle.this);
+                       if(logMINOR) Logger.minor(this, "Removed packet: 
disconnected for "+this);
                }

                public void fatalError() {
@@ -270,13 +270,17 @@
                                _packetsInFlight--;
                                PacketThrottle.this.notifyAll();
                        }
-                       if(logMINOR) Logger.minor(this, "Removed packet: error 
for "+this+" for "+PacketThrottle.this);
+                       if(logMINOR) Logger.minor(this, "Removed packet: error 
for "+this);
                }

                public void sent() {
                        // Ignore
                }

+               public String toString() {
+                       return 
super.toString()+":"+PacketThrottle.this.toString();
+               }
+               
        }

        public synchronized void maybeDisconnected() {


Reply via email to