fixing few logs and formatting issues

Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/bd794081
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/bd794081
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/bd794081

Branch: refs/heads/master
Commit: bd794081a6650630e021bf8d1f1706ce62549496
Parents: a9c959d
Author: Nirmal Fernando <[email protected]>
Authored: Wed May 7 04:21:17 2014 +0530
Committer: Nirmal Fernando <[email protected]>
Committed: Wed May 7 04:21:17 2014 +0530

----------------------------------------------------------------------
 .../git/impl/GitBasedArtifactRepository.java        | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/bd794081/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/artifact/deployment/synchronizer/git/impl/GitBasedArtifactRepository.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/artifact/deployment/synchronizer/git/impl/GitBasedArtifactRepository.java
 
b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/artifact/deployment/synchronizer/git/impl/GitBasedArtifactRepository.java
index 0e3982b..c741295 100644
--- 
a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/artifact/deployment/synchronizer/git/impl/GitBasedArtifactRepository.java
+++ 
b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/artifact/deployment/synchronizer/git/impl/GitBasedArtifactRepository.java
@@ -433,24 +433,24 @@ public class GitBasedArtifactRepository {
         }*/
 
         if (log.isDebugEnabled()) {
-            log.debug("Artifact checkout done by thread " + 
Thread.currentThread().getName() + " - " +
+            log.debug("Artifact checkout will be done by thread " + 
Thread.currentThread().getName() + " - " +
                 Thread.currentThread().getId());
         }
 
        int tenantId = Integer.parseInt(repositoryInformation.getTenantId());
        
        // if context for tenant is not initialized
-       if(tenantToRepoContextMap.get(tenantId) == null)
+       if(tenantToRepoContextMap.get(tenantId) == null) {
                initGitContext(repositoryInformation);
+       }
        
-        
                RepositoryContext gitRepoCtx = 
retrieveCachedGitContext(tenantId);
-        if(gitRepoCtx == null) { //to handle super tenant scenario
-           // if(log.isDebugEnabled())
-                log.info("No git repository context information found for 
deployment synchronizer");
+               
+               if (gitRepoCtx == null) { // to handle super tenant scenario
+                       log.info("No git repository context information found 
for deployment synchronizer");
 
-            return true;
-        }
+                       return true;
+               }
 
         synchronized (gitRepoCtx) {
             if(!gitRepoCtx.cloneExists())

Reply via email to