Redirecting Caught and Uncaught Exceptions to OSGI Console and Log File
[controller.git] / opendaylight / forwardingrulesmanager / src / main / java / org / opendaylight / controller / forwardingrulesmanager / internal / ForwardingRulesManagerImpl.java
index 58f1e18730c8ee230bc24d3d38786cf2cc7693aa..8af7bc1e3144381a35eb1b78c732aac4bd8b1664 100644 (file)
@@ -2244,7 +2244,7 @@ public class ForwardingRulesManagerImpl implements IForwardingRulesManager,
         try {
             node = NodeCreator.createOFNode(Long.valueOf(nodeId));
         } catch (NumberFormatException e) {
         try {
             node = NodeCreator.createOFNode(Long.valueOf(nodeId));
         } catch (NumberFormatException e) {
-            e.printStackTrace();
+            log.error("",e);
         }
         ci.println(this.programmer.addFlow(node, getSampleFlow(node)));
     }
         }
         ci.println(this.programmer.addFlow(node, getSampleFlow(node)));
     }
@@ -2260,7 +2260,7 @@ public class ForwardingRulesManagerImpl implements IForwardingRulesManager,
         try {
             node = NodeCreator.createOFNode(Long.valueOf(nodeId));
         } catch (NumberFormatException e) {
         try {
             node = NodeCreator.createOFNode(Long.valueOf(nodeId));
         } catch (NumberFormatException e) {
-            e.printStackTrace();
+            log.error("",e);
         }
         ci.println(this.programmer.removeFlow(node, getSampleFlow(node)));
     }
         }
         ci.println(this.programmer.removeFlow(node, getSampleFlow(node)));
     }