Merge "Replace exception.printStacktrace with write to log."
authorGiovanni Meo <gmeo@cisco.com>
Tue, 10 Sep 2013 10:41:20 +0000 (10:41 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 10 Sep 2013 10:41:20 +0000 (10:41 +0000)
1  2 
opendaylight/switchmanager/implementation/src/main/java/org/opendaylight/controller/switchmanager/internal/SwitchManager.java

@@@ -1104,7 -1104,7 +1104,7 @@@ public class SwitchManager implements I
      @Override
      public Set<Node> getNodes() {
          return (nodeProps != null) ? new HashSet<Node>(nodeProps.keySet())
 -                : null;
 +                : new HashSet<Node>();
      }
  
      /*
                          try {
                              map.put(s, new NodeConnector(entry.getValue()));
                          } catch (ConstructionException e) {
-                             e.printStackTrace();
+                             log.error("An error occured",e);
                          }
                      }
                  }
                              try {
                                  map.put(s, new NodeConnector(entry.getValue()));
                              } catch (ConstructionException e) {
-                                 e.printStackTrace();
+                                 log.error("An error occured",e);
                              }
                          }
                          map.remove(name.getValue());
                          try {
                              map.put(s, new NodeConnector(entry.getValue()));
                          } catch (ConstructionException e) {
-                             e.printStackTrace();
+                             log.error("An error occured",e);
                          }
                      }
                      map.remove(name.getValue());

©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.