VOL-1848 Print affinity router frames in hex, not decimal
Change-Id: Ie2d2ff92f078f640288724fa60a4525c2611f538
diff --git a/afrouter/afrouter/streams.go b/afrouter/afrouter/streams.go
index 458ed06..bb7faea 100644
--- a/afrouter/afrouter/streams.go
+++ b/afrouter/afrouter/streams.go
@@ -18,6 +18,7 @@
import (
"context"
+ "encoding/hex"
"errors"
"github.com/opencord/voltha-go/common/log"
"google.golang.org/grpc"
@@ -118,7 +119,7 @@
break
}
}
- log.Debugf("Northbound frame %v", f.payload)
+ log.Debugf("Northbound frame %s", hex.EncodeToString(f.payload))
if err := dst.SendMsg(f); err != nil {
srcS.c2sReturn <- err
break
@@ -208,7 +209,7 @@
log.Debugf("SendAll failed %s", err.Error())
break
}
- log.Debugf("Southbound frame %v", f.payload)
+ log.Debugf("Southbound frame %s", hex.EncodeToString(f.payload))
if err := src.RecvMsg(f); err != nil {
ret <- err // this can be io.EOF which is happy case
break