Author: toad
Date: 2007-06-12 17:06:51 +0000 (Tue, 12 Jun 2007)
New Revision: 13533

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
Better logging

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-06-12 
16:53:33 UTC (rev 13532)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-06-12 
17:06:51 UTC (rev 13533)
@@ -1468,8 +1468,8 @@
     public void sendHandshake(PeerNode pn) {
        int negType = pn.bestNegType(this);
        if(negType == -1) {
-               if(pn.getPeerNodeStatus() != 
PeerManager.PEER_NODE_STATUS_TOO_OLD)
-                       Logger.error(this, "Could not negotiate with "+pn+" : 
no common negTypes available!: his negTypes: "+pn.negTypes+" my negTypes: 
"+supportedNegTypes()+" despite being up to date!!");
+               if(pn.isRoutingCompatible())
+                       Logger.error(this, "Could not negotiate with "+pn+" : 
no common negTypes available!: his negTypes: 
"+StringArray.toString(pn.negTypes)+" my negTypes: 
"+StringArray.toString(supportedNegTypes())+" despite being up to date!!");
                else
                        Logger.normal(this, "Could not negotiate with "+pn+" : 
no common negTypes available!: his negTypes: "+pn.negTypes+" my negTypes: 
"+supportedNegTypes()+" (probably just too old)");
                return;


Reply via email to