diff --git a/spooler.c b/spooler.c index 267d26b9..e3c4c688 100644 --- a/spooler.c +++ b/spooler.c @@ -406,6 +406,7 @@ void spooler_manage_task(char *dir, char *task) { close(spool_fd); + int callable_found = 0; for(i=0;i<0xff;i++) { if (uwsgi.p[i]->spooler) { time_t now = time(NULL); @@ -414,8 +415,8 @@ void spooler_manage_task(char *dir, char *task) { free(body); } if (ret == 0) continue; + callable_found = 1; if (ret == -2) { - uwsgi_log("done with task/spool %s after %d seconds\n", task, time(NULL)-now); destroy_spool(dir, task); } @@ -423,6 +424,9 @@ void spooler_manage_task(char *dir, char *task) { break; } } + if (!callable_found) { + uwsgi_log("unable to find the spooler function, have you loaded it into the spooler process ?\n"); + } } }