From e1da1222c6fa546020e91aa5a8babdce9da8b915 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 21 Mar 2018 21:31:37 +0900 Subject: [PATCH] ing --- registry/registry.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)