diff --git a/plugins/python/pyutils.c b/plugins/python/pyutils.c index ce284fe0..2e91497f 100644 --- a/plugins/python/pyutils.c +++ b/plugins/python/pyutils.c @@ -27,8 +27,6 @@ PyObject *python_call(PyObject *callable, PyObject *args, int catch) { } #endif - uwsgi_log("python called\n"); - return pyret; } diff --git a/plugins/python/wsgi_handlers.c b/plugins/python/wsgi_handlers.c index dbf93809..a7386c40 100644 --- a/plugins/python/wsgi_handlers.c +++ b/plugins/python/wsgi_handlers.c @@ -214,7 +214,7 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) { if (wsgi_req->uh.modifier2 == 4) { // for persistent connections - uwsgi_log("LEAVE OPEN\n"); + // TODO move it to a generic modifier (WSGI independent) wsgi_req->leave_open = 1; } @@ -294,9 +294,7 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) { } - uwsgi_log("before subhandler %d\n", wsgi_req->leave_open); wsgi_req->async_result = wi->request_subhandler(wsgi_req, wi); - uwsgi_log("after subhandler %d\n", wsgi_req->leave_open); if (wsgi_req->async_result) { diff --git a/plugins/python/wsgi_subhandler.c b/plugins/python/wsgi_subhandler.c index 107e771a..1fd900d8 100644 --- a/plugins/python/wsgi_subhandler.c +++ b/plugins/python/wsgi_subhandler.c @@ -204,7 +204,6 @@ clear: } if (wsgi_req->async_post && !wsgi_req->fd_closed) { if (!wsgi_req->leave_open) { - uwsgi_log("FCLOSE()\n"); fclose(wsgi_req->async_post); } if (!uwsgi.post_buffering || wsgi_req->post_cl <= (size_t) uwsgi.post_buffering) { diff --git a/utils.c b/utils.c index 90178a53..6f76e7e3 100644 --- a/utils.c +++ b/utils.c @@ -439,7 +439,6 @@ int wsgi_req_recv(struct wsgi_request *wsgi_req) { } wsgi_req->async_status = uwsgi.p[wsgi_req->uh.modifier1]->request(wsgi_req); - uwsgi_log("leave_open after request %d\n", wsgi_req->leave_open); return 0; }