diff --git a/service_map.go b/service_map.go index 32c4623..34bc314 100644 --- a/service_map.go +++ b/service_map.go @@ -63,7 +63,7 @@ func (m *serviceMap) register(rcvr interface{}, name string) error { return fmt.Errorf("rpc: no service name for type %q", s.rcvrType.String()) } - log.Printf("The name of service is %s", s.name) + log.Printf("method count of service[%s] is %d", s.name, s.rcvrType.NumMethod()) // Setup methods. for i := 0; i < s.rcvrType.NumMethod(); i++ { method := s.rcvrType.Method(i)