added exceptions counter

This commit is contained in:
roberto@sirius
2011-01-14 14:49:45 +01:00
parent 170c66b000
commit 520ff8465b
6 changed files with 14 additions and 3 deletions
+1
View File
@@ -169,6 +169,7 @@ int uwsgi_response_subhandler_wsgi(struct wsgi_request *wsgi_req) {
if (PyErr_ExceptionMatches(PyExc_MemoryError)) {
uwsgi_log("Memory Error detected !!!\n");
}
uwsgi.workers[uwsgi.mywid].exceptions++;
PyErr_Print();
}
goto clear;