better route/sendfile/offload logging

This commit is contained in:
Unbit
2013-01-30 12:24:38 +01:00
parent feca5abc53
commit 443c2c5a29
9 changed files with 50 additions and 28 deletions
+2 -2
View File
@@ -820,7 +820,7 @@ PyObject *py_uwsgi_offload_transfer(PyObject * self, PyObject * args) {
UWSGI_RELEASE_GIL
if (uwsgi_offload_request_sendfile_do(wsgi_req, filename, len)) {
if (uwsgi_offload_request_sendfile_do(wsgi_req, filename, -1, len)) {
UWSGI_GET_GIL
return PyErr_Format(PyExc_ValueError, "unable to offload the request");
}
@@ -2681,7 +2681,7 @@ PyObject *py_uwsgi_route(PyObject * self, PyObject * args) {
ui->func = NULL;
// mark a route request
wsgi_req->status = -17;
wsgi_req->via = UWSGI_VIA_ROUTE;
return (PyObject *) ui;
}