Redirecting Caught and Uncaught Exceptions to OSGI Console and Log File
[controller.git] / opendaylight / forwarding / staticrouting / src / main / java / org / opendaylight / controller / forwarding / staticrouting / internal / StaticRoutingImplementation.java
index fd043fd0ac321d4cc52ce294676b5558ee72fac4..4c2ea7313ac61be41f19b5a5409ddcdba46c27e6 100644 (file)
@@ -244,7 +244,7 @@ public class StaticRoutingImplementation implements IfNewHostNotify,
                     try {
                         ra.staticRouteUpdate(s, update);
                     } catch (Exception e) {
-                        e.printStackTrace();
+                        log.error("",e);
                     }
                 }
             }
@@ -274,7 +274,7 @@ public class StaticRoutingImplementation implements IfNewHostNotify,
                         try {
                             host = future.get();
                         } catch (Exception e) {
-                            e.printStackTrace();
+                            log.error("",e);
                         }
                     }
                 }