stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lahi...@apache.org
Subject stratos git commit: Fix a debug log if statement
Date Mon, 01 Jun 2015 09:07:41 GMT
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 <lahirus@apache.org>
Authored: Mon Jun 1 14:37:31 2015 +0530
Committer: Lahiru Sandaruwan <lahirus@apache.org>
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;
 


Mime
View raw message