Redirecting Caught and Uncaught Exceptions to OSGI Console and Log File
[controller.git] / opendaylight / sal / implementation / src / main / java / org / opendaylight / controller / sal / implementation / internal / DataPacketService.java
index 78fedee36ad420fa75957268e0a9ae01219790b9..3f36beaa27b7772c441b43ac417015b62ec5f1b9 100644 (file)
@@ -533,7 +533,7 @@ public class DataPacketService implements IPluginOutDataPacketService,
         try {
             data = pkt.serialize();
         } catch (Exception e) {
-            e.printStackTrace();
+            logger.error("",e);
             return null;
         }
         if (data.length <= 0) {