incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r634579 - /incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
Date Fri, 07 Mar 2008 08:17:33 GMT
Author: bdelacretaz
Date: Fri Mar  7 00:17:17 2008
New Revision: 634579

URL: http://svn.apache.org/viewvc?rev=634579&view=rev
Log:
SLING-310 - additional log messages to follow what's happening

Modified:
    incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java

Modified: incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java?rev=634579&r1=634578&r2=634579&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
(original)
+++ incubator/sling/trunk/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
Fri Mar  7 00:17:17 2008
@@ -708,31 +708,36 @@
 
     private boolean startRepository() {
         try {
+            log(LogService.LOG_INFO, "startRepository: calling acquireRepository()");
             Repository newRepo = acquireRepository();
             if (newRepo != null) {
 
                 // ensure we really have the repository
+                log(LogService.LOG_INFO, "startRepository: got a Repository, calling pingRepository()");
                 if (pingRepository(newRepo)) {
                     repository = newRepo;
 
+                    log(LogService.LOG_INFO, "startRepository: pingRepository() successful,
calling setupRepository()");
                     setupRepository(newRepo);
+                    log(LogService.LOG_INFO, "startRepository: calling registerService()");
                     repositoryService = registerService();
+                    log(LogService.LOG_INFO, "registerService() successful");
 
                     return true;
                 }
 
-                // otherwise let go off the repository and fail startup
-                log(LogService.LOG_INFO, "startRepository: Acquired Repository is not responsive,
failing");
+                // otherwise let go of the repository and fail startup
+                log(LogService.LOG_INFO, "startRepository: pingRepository() failed, calling
disposeRepository()");
                 disposeRepository(repository);
             }
         } catch (Throwable t) {
             // consider an uncaught problem an error
             log(
                 LogService.LOG_ERROR,
-                "startRepository: Uncaught problem trying to provide repository access",
+                "startRepository: Uncaught Throwable trying to access Repository, calling
stopRepository()",
                 t);
 
-            // repository might be partially start, stop anything left
+            // repository might be partially started, stop anything left
             stopRepository();
         }
 



Mime
View raw message