Author: nextgens
Date: 2008-07-22 16:05:47 +0000 (Tue, 22 Jul 2008)
New Revision: 21316

Modified:
   trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java
Log:
logging

Modified: trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java
===================================================================
--- trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java      
2008-07-22 16:05:16 UTC (rev 21315)
+++ trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java      
2008-07-22 16:05:47 UTC (rev 21316)
@@ -215,12 +215,12 @@
                // if the new build is self-mandatory or if the "normal" 
updater has been trying to update for more than one hour
                Logger.normal(this, "We received a valid UOMAnnounce : 
(isOutdated="+isOutdated+" version="+mainJarVersion +" 
whenToTakeOverTheNormalUpdater="+TimeUtil.formatTime(whenToTakeOverTheNormalUpdater-now)+')');
                if((isOutdated) || (whenToTakeOverTheNormalUpdater > 0 && 
whenToTakeOverTheNormalUpdater < now)) {
-                       if(!isOutdated) {
-                               Logger.error(this, "The update process seems to 
have been stuck for over an hour; let's switch to UoM! SHOULD NOT HAPPEN!");
-                               System.out.println("The update process seems to 
have been stuck for over an hour; let's switch to UoM! SHOULD NOT HAPPEN!");
-                       }
                        if(mainJarVersion > Version.buildNumber() && 
mainJarFileLength > 0 &&
                                mainJarVersion > 
updateManager.newMainJarVersion())
+                               if(!isOutdated) {
+                                       Logger.error(this, "The update process 
seems to have been stuck for over an hour; let's switch to UoM! SHOULD NOT 
HAPPEN!");
+                                       System.out.println("The update process 
seems to have been stuck for over an hour; let's switch to UoM! SHOULD NOT 
HAPPEN!");
+                               }
                                // Fetch it
                                try {
                                        FreenetURI mainJarURI = new 
FreenetURI(jarKey).setSuggestedEdition(mainJarVersion);


Reply via email to