You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by is...@apache.org on 2014/10/27 09:49:56 UTC

git commit: converting non-critical info logs to debug in TopologyLockHierarchy class

Repository: stratos
Updated Branches:
  refs/heads/4.0.0-grouping 07c510997 -> 0300d17d9


converting non-critical info logs to debug in TopologyLockHierarchy class


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

Branch: refs/heads/4.0.0-grouping
Commit: 0300d17d905f5e1629b76e2805317a1a7016dee3
Parents: 07c5109
Author: Isuru Haththotuwa <is...@apache.org>
Authored: Mon Oct 27 14:19:28 2014 +0530
Committer: Isuru Haththotuwa <is...@apache.org>
Committed: Mon Oct 27 14:19:41 2014 +0530

----------------------------------------------------------------------
 .../topology/locking/TopologyLockHierarchy.java | 24 +++++++++++++++-----
 1 file changed, 18 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/0300d17d/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/locking/TopologyLockHierarchy.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/locking/TopologyLockHierarchy.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/locking/TopologyLockHierarchy.java
index 015fa2e..bb6b8fa 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/locking/TopologyLockHierarchy.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/locking/TopologyLockHierarchy.java
@@ -82,7 +82,9 @@ public class TopologyLockHierarchy {
                 }
             }
         } else {
-            log.warn("Topology Lock for Application " + appId + " already exists");
+            if (log.isDebugEnabled()) {
+                log.debug("Topology Lock for Application " + appId + " already exists");
+            }
         }
     }
 
@@ -100,7 +102,9 @@ public class TopologyLockHierarchy {
                 }
             }
         } else {
-            log.warn("Topology Lock for Service " + serviceName + " already exists");
+            if (log.isDebugEnabled()) {
+                log.debug("Topology Lock for Service " + serviceName + " already exists");
+            }
         }
     }
 
@@ -118,7 +122,9 @@ public class TopologyLockHierarchy {
                 }
             }
         } else {
-            log.warn("Topology Lock for Cluster " + clusterId + " already exists");
+            if (log.isDebugEnabled()) {
+                log.debug("Topology Lock for Cluster " + clusterId + " already exists");
+            }
         }
     }
 
@@ -130,7 +136,9 @@ public class TopologyLockHierarchy {
         if (applicationIdToTopologyLockMap.remove(appId) != null) {
             log.info("Removed lock for Application " + appId);
         } else {
-            log.info("Lock already removed for Application " + appId);
+            if (log.isDebugEnabled()) {
+                log.debug("Lock already removed for Application " + appId);
+            }
         }
     }
 
@@ -138,7 +146,9 @@ public class TopologyLockHierarchy {
         if (serviceNameToTopologyLockMap.remove(serviceName) != null) {
             log.info("Removed lock for Service " + serviceName);
         } else {
-            log.info("Lock already removed for Service " + serviceName);
+            if (log.isDebugEnabled()) {
+                log.debug("Lock already removed for Service " + serviceName);
+            }
         }
     }
 
@@ -146,7 +156,9 @@ public class TopologyLockHierarchy {
         if (clusterIdToTopologyLockMap.remove(clusterId) != null) {
             log.info("Removed lock for Cluster " + clusterId);
         } else {
-            log.info("Lock already removed for Cluster " + clusterId);
+            if (log.isDebugEnabled()) {
+                log.debug("Lock already removed for Cluster " + clusterId);
+            }
         }
     }