[freenet-cvs] r17457 - trunk/freenet/src/freenet/node

toad at freenetproject.org toad at freenetproject.org
Fri Feb 1 16:27:02 UTC 2008


Author: toad
Date: 2008-02-01 16:27:02 +0000 (Fri, 01 Feb 2008)
New Revision: 17457

Modified:
   trunk/freenet/src/freenet/node/IPDetectorPluginManager.java
Log:
logging

Modified: trunk/freenet/src/freenet/node/IPDetectorPluginManager.java
===================================================================
--- trunk/freenet/src/freenet/node/IPDetectorPluginManager.java	2008-02-01 16:19:58 UTC (rev 17456)
+++ trunk/freenet/src/freenet/node/IPDetectorPluginManager.java	2008-02-01 16:27:02 UTC (rev 17457)
@@ -288,6 +288,7 @@
 					if(logMINOR) Logger.minor(this, "Last detect failed less than 5 minutes ago");
 					return;
 				} else {
+					if(logMINOR) Logger.minor(this, "Last detect failed, redetecting");
 					startDetect();
 					return;
 				}
@@ -346,6 +347,7 @@
 		int realDisconnected = 0;
 		int recentlyConnected = 0;
 		
+		if(logMINOR) Logger.minor(this, "Checking whether should detect with "+peers.length+" peers and "+conns.length+" conns, counting peers...");
 		for(int i=0;i<peers.length;i++) {
 			PeerNode p = peers[i];
 			if(p.isDisabled()) continue;
@@ -441,6 +443,7 @@
 			return false;
 		}
 		
+		if(logMINOR) Logger.minor(this, "Checking whether should detect despite real IP...");
 		// Now, if we have two nodes with unique IPs which aren't ours
 		// connected, we don't need to detect.
 		HashSet addressesConnected = null;




More information about the cvs mailing list