Author: toad
Date: 2006-04-04 18:59:05 +0000 (Tue, 04 Apr 2006)
New Revision: 8457

Modified:
   trunk/freenet/src/freenet/node/LocationManager.java
   trunk/freenet/src/freenet/node/Version.java
Log:
619: Add "Known Location: <loc>" logging.

Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2006-04-04 18:29:40 UTC 
(rev 8456)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2006-04-04 18:59:05 UTC 
(rev 8457)
@@ -276,6 +276,7 @@
                 Logger.error(this, "Bad loc: "+hisLoc+" on "+uid);
                 return;
             }
+            Logger.minor(this, "Known Location: "+hisLoc);

             double[] hisFriendLocs = new double[hisBufLong.length-2];
             for(int i=0;i<hisFriendLocs.length;i++) {
@@ -284,6 +285,7 @@
                     Logger.error(this, "Bad friend loc: "+hisFriendLocs[i]+" 
on "+uid);
                     return;
                 }
+                Logger.minor(this, "Known Location: "+hisFriendLocs[i]);
             }

             // Send our SwapComplete
@@ -455,6 +457,7 @@
                     Logger.error(this, "Bad loc: "+hisLoc+" on "+uid);
                     return;
                 }
+                Logger.minor(this, "Known Location: "+hisLoc);

                 double[] hisFriendLocs = new double[hisBufLong.length-2];
                 for(int i=0;i<hisFriendLocs.length;i++) {
@@ -463,6 +466,7 @@
                         Logger.error(this, "Bad friend loc: 
"+hisFriendLocs[i]+" on "+uid);
                         return;
                     }
+                    Logger.minor(this, "Known Location: "+hisFriendLocs[i]);
                 }

                 if(shouldSwap(myLoc, friendLocs, hisLoc, hisFriendLocs, random 
^ hisRandom)) {

Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-04-04 18:29:40 UTC (rev 
8456)
+++ trunk/freenet/src/freenet/node/Version.java 2006-04-04 18:59:05 UTC (rev 
8457)
@@ -20,7 +20,7 @@
        public static final String protocolVersion = "1.0";

        /** The build number of the current revision */
-       private static final int buildNumber = 618;
+       private static final int buildNumber = 619;

        /** Oldest build of Fred we will talk to */
        private static final int lastGoodBuild = 591;


Reply via email to