Author: nextgens
Date: 2008-08-18 18:17:07 +0000 (Mon, 18 Aug 2008)
New Revision: 22017

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-08-18 18:04:49 UTC (rev 22016)
+++ trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java      
2008-08-18 18:17:07 UTC (rev 22017)
@@ -227,8 +227,9 @@
                                // If we have fetches running already, then 
sendUOMRequestMain() will add the offer to nodesOfferedMainJar,
                                // so that if all our fetches fail, we can 
fetch from this node.
                                        if(!isOutdated) {
-                                               Logger.error(this, "The update 
process seems to have been stuck for over three hours; let's switch to UoM! 
SHOULD NOT HAPPEN! (1)");
-                                               System.out.println("The update 
process seems to have been stuck for over three hours; let's switch to UoM! 
SHOULD NOT HAPPEN! (1)");
+                                               String howLong = 
TimeUtil.formatTime(now - started);
+                                               Logger.error(this, "The update 
process seems to have been stuck for "+ howLong +"; let's switch to UoM! SHOULD 
NOT HAPPEN! (1)");
+                                               System.out.println("The update 
process seems to have been stuck for "+ howLong +"; let's switch to UoM! SHOULD 
NOT HAPPEN! (1)");
                                        } else
                                                if(logMINOR) Logger.minor(this, 
"Fetching via UOM as our build is deprecated");
                                        // Fetch it
@@ -256,8 +257,8 @@
                                                if(!updateManager.isEnabled()) 
return;
                                                
if(updateManager.hasNewMainJar()) return;
                                                
if(!updateManager.node.isOudated()) {
-                                                       Logger.error(this, "The 
update process seems to have been stuck for over an hour; let's switch to UoM! 
SHOULD NOT HAPPEN! (2)");
-                                                       System.out.println("The 
update process seems to have been stuck for over an hour; let's switch to UoM! 
SHOULD NOT HAPPEN! (2)");
+                                                       Logger.error(this, "The 
update process seems to have been stuck for too long; let's switch to UoM! 
SHOULD NOT HAPPEN! (2)");
+                                                       System.out.println("The 
update process seems to have been stuck for too long; let's switch to UoM! 
SHOULD NOT HAPPEN! (2)");
                                                }
                                                maybeRequestMainJar();
                                        }


Reply via email to