[VOL-2231] Cleaning the packet-in/out logs and dumping packets in HEX

Change-Id: I22fe6b8b39fb683cea89bb93b1baa2ed2a664398
diff --git a/python/ofagent/of_protocol_handler.py b/python/ofagent/of_protocol_handler.py
index e90ca5b..a4b3f70 100755
--- a/python/ofagent/of_protocol_handler.py
+++ b/python/ofagent/of_protocol_handler.py
@@ -18,6 +18,7 @@
 
 import loxi.of13 as ofp
 from converter import to_loxi, pb2dict, to_grpc
+from binascii import hexlify
 
 log = structlog.get_logger()
 
@@ -348,7 +349,7 @@
 
     def forward_packet_in(self, ofp_packet_in):
         if self.role == ofp.OFPCR_ROLE_MASTER or self.role == ofp.OFPCR_ROLE_EQUAL:
-           log.info('sending-packet-in', ofp_packet_in=ofp_packet_in)
+           log.info('sending-packet-in', ofp_packet_in=ofp_packet_in, packet=hexlify(ofp_packet_in.data))
            self.cxn.send(to_loxi(ofp_packet_in))
 
     def forward_port_status(self, ofp_port_status):