a new kick-ass feature for the spooler

This commit is contained in:
roberto@debian32
2011-08-04 16:25:17 +02:00
parent 9bd3022a5e
commit 8c1b48a88d
5 changed files with 73 additions and 1 deletions
+3 -1
View File
@@ -22,7 +22,9 @@ PyObject *python_call(PyObject *callable, PyObject *args, int catch) {
if (PyErr_ExceptionMatches(PyExc_MemoryError)) {
uwsgi_log("Memory Error detected !!!\n");
}
uwsgi.workers[uwsgi.mywid].exceptions++;
// this can be in a spooler or in the master
if (uwsgi.mywid > 0)
uwsgi.workers[uwsgi.mywid].exceptions++;
if (!catch) {
PyErr_Print();
}