diff --git a/registry/registry.go b/registry/registry.go index 76cdfc0..39684b3 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -2,6 +2,7 @@ package registry import ( "fmt" + "log" "reflect" "runtime" "strings" @@ -48,7 +49,7 @@ func RegisterType(t reflect.Type) error { pc, _, _, ok := runtime.Caller(1) details := runtime.FuncForPC(pc) if ok && details != nil { - return fmt.Errorf("called from %s", details.Name()) + log.Printf("called from %s", details.Name()) } return registry.RegisterType(t)