sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1028454 - /sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java
Date Thu, 28 Oct 2010 20:01:15 GMT
Author: justin
Date: Thu Oct 28 20:01:14 2010
New Revision: 1028454

URL: http://svn.apache.org/viewvc?rev=1028454&view=rev
Log:
adding some debug logging during bootstrapping

Modified:
    sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java

Modified: sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java?rev=1028454&r1=1028453&r2=1028454&view=diff
==============================================================================
--- sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java
(original)
+++ sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java
Thu Oct 28 20:01:14 2010
@@ -876,6 +876,8 @@ class BootstrapInstaller implements Bund
 
                     long storedStamp = Long.parseLong(value);
 
+                    logger.log(Logger.LOG_INFO, String.format("Stored timestamp: %s", storedStamp));
+
                     return storedStamp >= selfStamp;
                 }
 
@@ -944,6 +946,8 @@ class BootstrapInstaller implements Bund
             URLClassLoader urlLoader = (URLClassLoader) loader;
             URL[] urls = urlLoader.getURLs();
             if (urls.length > 0) {
+            	URL url = urls[0];
+            	logger.log(Logger.LOG_INFO, String.format("Using timestamp from %s.", url));
                 selfStamp = urls[0].openConnection().getLastModified();
             }
         }
@@ -956,11 +960,14 @@ class BootstrapInstaller implements Bund
             File[] jarFiles = levelDir.listFiles(BUNDLE_FILE_FILTER);
             for (File bundleJar : jarFiles) {
                 if (bundleJar.lastModified() > selfStamp) {
+                	logger.log(Logger.LOG_INFO, String.format("Using timestamp from %s.", bundleJar));
                     selfStamp = bundleJar.lastModified();
                 }
             }
         }
 
+        logger.log(Logger.LOG_INFO, String.format("Final self timestamp: %s.", selfStamp));
+
         // return the final stamp (may be -1 if launcher jar cannot be checked
         // and there are no bundle jar files)
         return selfStamp;



Mime
View raw message