Skip to content

Commit f9339e1

Browse files
authored
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.
1 parent 473d130 commit f9339e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ytypes/container.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"reflect"
2020
"strings"
2121

22-
log "github.com/golang/glog"
2322
"github.com/kylelemons/godebug/pretty"
2423
"github.com/openconfig/goyang/pkg/yang"
2524
"github.com/openconfig/ygot/util"
@@ -158,7 +157,6 @@ func unmarshalStruct(schema *yang.Entry, parent interface{}, jsonTree map[string
158157
// Skip annotation fields since they do not have a schema.
159158
// TODO(robjs): Implement unmarshalling annotations.
160159
if util.IsYgotAnnotation(ft) {
161-
log.Infof("ignoring annotation field %s during unmarshalling, unsupported", ft.Name)
162160
// We need to find the paths that we should have unmarshalled here to avoid
163161
// throwing errors to users whilst there is a TODO above.
164162
paths, err := pathTagFromField(ft)

0 commit comments

Comments
 (0)