Repository: stratos
Updated Branches:
  refs/heads/master 271d5cb16 -> 8bed51d04


Fix a debug log if statement


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

Branch: refs/heads/master
Commit: 8bed51d04a655425e0aa38b1e64ccc774b91311d
Parents: 271d5cb
Author: Lahiru Sandaruwan <[email protected]>
Authored: Mon Jun 1 14:37:31 2015 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Mon Jun 1 14:37:31 2015 +0530

----------------------------------------------------------------------
 .../stratos/autoscaler/monitor/cluster/ClusterMonitor.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/8bed51d0/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
index c2ac79f..bea8c90 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
@@ -1467,8 +1467,10 @@ public class ClusterMonitor extends Monitor {
             } else {
                 createClusterInstance(cluster.getServiceName(), 
cluster.getClusterId(), null, parentInstanceId, partitionId,
                         parentMonitorInstance.getNetworkPartitionId());
-                log.debug(String.format("Cluster instance created: 
[application-id] %s [service-name] %s " +
-                        "[cluster-id] %s", appId, cluster.getServiceName(), 
cluster.getClusterId()));
+                if(log.isDebugEnabled()) {
+                    log.debug(String.format("Cluster instance created: 
[application-id] %s [service-name] %s " +
+                            "[cluster-id] %s", appId, 
cluster.getServiceName(), cluster.getClusterId()));
+                }
             }
             return true;
 

Reply via email to