diff --git a/mw/rpc_client_interceptor.go b/mw/rpc_client_interceptor.go index 473e08e..bd5216c 100644 --- a/mw/rpc_client_interceptor.go +++ b/mw/rpc_client_interceptor.go @@ -45,7 +45,7 @@ func RpcClientInterceptor(ctx context.Context, method string, req, resp any, cc log.ZDebug(ctx, fmt.Sprintf("RPC Client Request - %s", extractFunctionName(method)), "funcName", method, "req", req, "conn target", cc.Target()) defer func() { if r := recover(); r != nil { - PanicStackToLog(ctx, err) + PanicStackToLog(ctx, r) } }() err = invoker(ctx, method, req, resp, cc, opts...)