From f9339e19b5cf34c35a94d11f60f48c596c9dde29 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Fri, 22 Apr 2022 10:31:18 -0700 Subject: [PATCH] Remove log that is always generated for annotation fields. (#652) * (M) ytypes/container.go - Since schemas that are generated with annotations will always generate the log that says that unmarshal into them is unsupported the log message produced is extremely low value to a user. To this end - just remove it. --- ytypes/container.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/ytypes/container.go b/ytypes/container.go index 73790f2ef..2d9d50c3f 100644 --- a/ytypes/container.go +++ b/ytypes/container.go @@ -19,7 +19,6 @@ import ( "reflect" "strings" - log "github.com/golang/glog" "github.com/kylelemons/godebug/pretty" "github.com/openconfig/goyang/pkg/yang" "github.com/openconfig/ygot/util" @@ -158,7 +157,6 @@ func unmarshalStruct(schema *yang.Entry, parent interface{}, jsonTree map[string // Skip annotation fields since they do not have a schema. // TODO(robjs): Implement unmarshalling annotations. if util.IsYgotAnnotation(ft) { - log.Infof("ignoring annotation field %s during unmarshalling, unsupported", ft.Name) // We need to find the paths that we should have unmarshalled here to avoid // throwing errors to users whilst there is a TODO above. paths, err := pathTagFromField(ft)