diff --git a/client/client.go b/client/client.go index d04eb58..e933c8b 100644 --- a/client/client.go +++ b/client/client.go @@ -379,10 +379,10 @@ func (c *client) handleResponse(resCodec protocol.ClientResponseCodec) error { atomic.AddUint32(&c.pendingRequestsCount, ^uint32(0)) if err := resCodec.Result(rs.Result); nil != err { - log.Printf("responseHandle:%v", err) + logging.Logger().Errorf("responseHandle:%v", err) } if err := resCodec.Error(); nil != err { - log.Printf("responseHandle:%v", err) + logging.Logger().Errorf("responseHandle:%v", err) // rs.Error = &ClientError{ // Server: true, // err: fmt.Errorf("gorpc.Client: [%s]. Server error: [%s]", c.Addr, wr.Error),