stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ud...@apache.org
Subject [10/10] git commit: fixing NPE in debug logs
Date Tue, 07 Oct 2014 12:18:12 GMT
fixing NPE in debug logs


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

Branch: refs/heads/4.0.0-grouping
Commit: 4bd661edeafb06830d303b625c601051a286b794
Parents: 3c8deac
Author: Udara Liyanage <udara@wso2.com>
Authored: Tue Oct 7 17:46:45 2014 +0530
Committer: Udara Liyanage <udara@wso2.com>
Committed: Tue Oct 7 17:46:45 2014 +0530

----------------------------------------------------------------------
 .../receiver/topology/AutoscalerTopologyEventReceiver.java   | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/4bd661ed/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/topology/AutoscalerTopologyEventReceiver.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/topology/AutoscalerTopologyEventReceiver.java
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/topology/AutoscalerTopologyEventReceiver.java
index 5220390..627b648 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/topology/AutoscalerTopologyEventReceiver.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/topology/AutoscalerTopologyEventReceiver.java
@@ -26,7 +26,6 @@ import org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClie
 import org.apache.stratos.autoscaler.deployment.policy.DeploymentPolicy;
 import org.apache.stratos.autoscaler.exception.TerminationException;
 import org.apache.stratos.autoscaler.monitor.AbstractClusterMonitor;
-import org.apache.stratos.autoscaler.monitor.Monitor;
 import org.apache.stratos.autoscaler.monitor.application.ApplicationMonitor;
 import org.apache.stratos.autoscaler.monitor.group.GroupMonitor;
 import org.apache.stratos.autoscaler.partition.PartitionManager;
@@ -587,12 +586,9 @@ public class AutoscalerTopologyEventReceiver implements Runnable {
                     success = true;
                     //TODO exception handling
                 } catch (Exception e) {
-                    String msg = "Application monitor creation failed for Application: "
+
-                                    application.getId();
-                    log.debug(msg, e);
+                    String msg = "Application monitor creation failed for Application: ";
+                    log.warn(msg, e);
                     retries--;
-
-
                 }
             } while (!success && retries != 0);
 


Mime
View raw message