You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2014/11/07 15:09:59 UTC
stratos git commit: Updating log messages
Repository: stratos
Updated Branches:
refs/heads/docker-grouping-merge 83ede2f59 -> bd9cc1c49
Updating log messages
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/bd9cc1c4
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/bd9cc1c4
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/bd9cc1c4
Branch: refs/heads/docker-grouping-merge
Commit: bd9cc1c49204bc6b7610f19429f5a369c43eb017
Parents: 83ede2f
Author: Imesh Gunaratne <im...@apache.org>
Authored: Fri Nov 7 19:39:51 2014 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Fri Nov 7 19:39:51 2014 +0530
----------------------------------------------------------------------
.../autoscaler/monitor/cluster/ClusterMonitorFactory.java | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/bd9cc1c4/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitorFactory.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitorFactory.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitorFactory.java
index b9c1576..19b49f2 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitorFactory.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitorFactory.java
@@ -355,21 +355,23 @@ public class ClusterMonitorFactory {
String autoscalePolicyName = cluster.getAutoscalePolicyName();
if (log.isDebugEnabled()) {
- log.debug("Autoscaler policy name: " + autoscalePolicyName);
+ log.debug("Autoscaling policy name: " + autoscalePolicyName);
}
AutoscalePolicy policy = PolicyManager.getInstance().getAutoscalePolicy(autoscalePolicyName);
if (policy == null) {
- String msg = "Autoscale Policy is null. Policy name: " + autoscalePolicyName;
+ String msg = String.format("Autoscaling policy is null: [policy-name] %s", autoscalePolicyName);
log.error(msg);
throw new PolicyValidationException(msg);
}
java.util.Properties properties = cluster.getProperties();
if(properties == null) {
- throw new RuntimeException(String.format("Properties not found in kubernetes cluster: [cluster-id] %s",
- cluster.getClusterId()));
+ String message = String.format("Properties not found in kubernetes cluster: [cluster-id] %s",
+ cluster.getClusterId());
+ log.error(message);
+ throw new RuntimeException(message);
}
String kubernetesHostClusterID = properties.getProperty(StratosConstants.KUBERNETES_CLUSTER_ID);