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

Change-Id: I22fe6b8b39fb683cea89bb93b1baa2ed2a664398
diff --git a/rw_core/core/grpc_nbi_api_handler.go b/rw_core/core/grpc_nbi_api_handler.go
index 87f42c6..0aa74f5 100755
--- a/rw_core/core/grpc_nbi_api_handler.go
+++ b/rw_core/core/grpc_nbi_api_handler.go
@@ -17,6 +17,7 @@
 
 import (
 	"context"
+	"encoding/hex"
 	"encoding/json"
 	"errors"
 	"github.com/golang/protobuf/ptypes/empty"
@@ -959,7 +960,9 @@
 	for {
 		select {
 		case packet := <-handler.packetInQueue:
-			log.Debugw("sending-packet-in", log.Fields{"packet": packet})
+			log.Debugw("sending-packet-in", log.Fields{
+				"packet": hex.EncodeToString(packet.PacketIn.Data),
+			})
 			if err := packetsIn.Send(&packet); err != nil {
 				log.Errorw("failed-to-send-packet", log.Fields{"error": err})
 				// save the last failed packet in