Merge "Add some log messages in case controller failed to add connected node."
authorChi-Vien Ly <chivly@cisco.com>
Tue, 24 Dec 2013 16:22:31 +0000 (16:22 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 24 Dec 2013 16:22:31 +0000 (16:22 +0000)
opendaylight/connectionmanager/implementation/src/main/java/org/opendaylight/controller/connectionmanager/scheme/AbstractScheme.java

index 5ba156e..718a3ff 100644 (file)
@@ -277,6 +277,11 @@ public abstract class AbstractScheme {
 
     public Status addNode (Node node, InetAddress controller) {
         if (node == null || controller == null) {
+            if (node == null) {
+                log.warn("addNode: node is null");
+            } else if (controller == null) {
+                log.error("Failed to add node {}. The controller address retrieved from clusterServices is null.", node);
+            }
             return new Status(StatusCode.BADREQUEST);
         }
         if (isLocal(node))  {

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.