diff --git a/inception/reflect.go b/inception/reflect.go index fb81036..3979ee8 100644 --- a/inception/reflect.go +++ b/inception/reflect.go @@ -23,6 +23,7 @@ import ( "bytes" "encoding/json" + "log" "reflect" "unicode/utf8" ) @@ -272,6 +273,7 @@ func dominantField(fields []*StructField) (*StructField, bool) { if tagged >= 0 { // Multiple tagged fields at the same level: conflict. // Return no field. + log.Printf("Warning: Duplicate tagged entry with entry %s found. Ignoring entries.", f.JsonName, f.Typ) return nil, false } tagged = i