Author: zothar
Date: 2006-07-23 19:38:44 +0000 (Sun, 23 Jul 2006)
New Revision: 9739

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
Make "Key changed" messages more meaningful by reporting which peer they apply 
to.

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java        2006-07-23 
17:38:38 UTC (rev 9738)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java        2006-07-23 
19:38:44 UTC (rev 9739)
@@ -1073,7 +1073,7 @@
                 processOutgoingPreformatted(buf, offset, length, tracker, k, 
callbacks, alreadyReportedBytes);
                 return;
             } catch (KeyChangedException e) {
-               Logger.normal(this, "Key changed(1)");
+               Logger.normal(this, "Key changed(1) for "+peer.getPeer());
                 // Go around again
             }
         }
@@ -1097,7 +1097,7 @@
                 processOutgoingPreformatted(buf, offset, length, tracker, 
seqNo, callbacks, alreadyReportedBytes);
                 return;
             } catch (KeyChangedException e) {
-               Logger.normal(this, "Key changed(2)");
+               Logger.normal(this, "Key changed(2) for "+peer.getPeer());
                 // Go around again
             }
         }


Reply via email to