From 309648f68b2d4ccf3f172c48fa978b034cd05023 Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Tue, 6 Jul 2010 10:44:00 +0200 Subject: [PATCH] more verbose spooler --- uwsgi_pymodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uwsgi_pymodule.c b/uwsgi_pymodule.c index 40c01a69..c9f68bdd 100644 --- a/uwsgi_pymodule.c +++ b/uwsgi_pymodule.c @@ -317,6 +317,7 @@ PyObject *py_uwsgi_send_spool(PyObject * self, PyObject * args) { spool_dict = PyTuple_GetItem(args, 0); if (!PyDict_Check(spool_dict)) { + uwsgi_log("The argument of spooler callable must be a dictionary.\n"); Py_INCREF(Py_None); return Py_None; } @@ -371,6 +372,7 @@ PyObject *py_uwsgi_send_spool(PyObject * self, PyObject * args) { } } else { + uwsgi_log("spooler callable dictionary must contains only strings.\n"); Py_DECREF(zero); Py_INCREF(Py_None); return Py_None;