mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
Added RAY_CHECK with line num and file name for logs
This commit is contained in:
+1
-3
@@ -703,9 +703,7 @@ PyObject* put_object(PyObject* self, PyObject* args) {
|
||||
if (!PyArg_ParseTuple(args, "O&O&O&O", &PyObjectToWorker, &worker, &PyObjectToObjRef, &objref, &PyObjectToObj, &obj, &contained_objrefs)) {
|
||||
return NULL;
|
||||
}
|
||||
if (!PyList_Check(contained_objrefs)) {
|
||||
RAY_LOG(RAY_FATAL, "The contained_objrefs argument must be a list.")
|
||||
}
|
||||
RAY_CHECK(PyList_Check(contained_objrefs), "The contained_objrefs argument must be a list.")
|
||||
std::vector<ObjRef> vec_contained_objrefs;
|
||||
size_t size = PyList_Size(contained_objrefs);
|
||||
for (size_t i = 0; i < size; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user