mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 02:16:16 +08:00
zap
This commit is contained in:
parent
a3410beaec
commit
714a68fc44
@ -36,7 +36,7 @@ func rpcClientInterceptor(ctx context.Context, method string, req, resp interfac
|
|||||||
log.ZInfo(ctx, "rpc resp", "funcName", method, rpcString(resp))
|
log.ZInfo(ctx, "rpc resp", "funcName", method, rpcString(resp))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
log.ZError(ctx, "rpc resp error:", err)
|
log.ZError(ctx, "rpc resp error", err)
|
||||||
rpcErr, ok := err.(interface{ GRPCStatus() *status.Status })
|
rpcErr, ok := err.(interface{ GRPCStatus() *status.Status })
|
||||||
if !ok {
|
if !ok {
|
||||||
return errs.ErrInternalServer.Wrap(err.Error())
|
return errs.ErrInternalServer.Wrap(err.Error())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user