Logging improvement for VGC-APPLICATION
Change-Id: I35c10b43917d5f962484f05c3fb9d9aad67e63f5
diff --git a/internal/pkg/application/util.go b/internal/pkg/application/util.go
index f157bf9..0fb5313 100644
--- a/internal/pkg/application/util.go
+++ b/internal/pkg/application/util.go
@@ -18,6 +18,7 @@
import (
"errors"
"strconv"
+ "voltha-go-controller/log"
"github.com/google/gopacket/layers"
)
@@ -35,6 +36,7 @@
// GetMetadataForL2Protocol - returns metadata value for provide ethertype
func GetMetadataForL2Protocol(etherType layers.EthernetType) (uint8, error) {
+ logger.Debugw(ctx, " GetMetadataForL2Protocol", log.Fields{"EtherType ": etherType})
switch etherType {
case layers.EthernetTypeDot1Q:
return EtherType8100, nil