Redirecting Caught and Uncaught Exceptions to OSGI Console and Log File
[controller.git] / opendaylight / samples / loadbalancer / src / main / java / org / opendaylight / controller / samples / loadbalancer / internal / LoadBalancerService.java
index 1c69be895afbd3e1aecda0009ee0616495960345..a0f388b8bcfe27a172468b27456d60d96c44b9b4 100644 (file)
@@ -283,7 +283,7 @@ public class LoadBalancerService implements IListenDataPacket, IConfigManager{
                             }
                         }catch (UnknownHostException e) {
                             lbsLogger.error("Pool member not found  in the network : {}",e.getMessage());
-                            e.printStackTrace();
+                            lbsLogger.error("",e);
                         }
                     }
                 }