diff --git a/buildconf/default.ini b/buildconf/default.ini index eb4030a0..61743ef3 100644 --- a/buildconf/default.ini +++ b/buildconf/default.ini @@ -19,7 +19,7 @@ evdis = false ldap = false routing = false stackless = false -debug = false +debug = true unbit = false xml_implementation = libxml2 plugins = diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index fa24a3eb..9492ca13 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -178,7 +178,7 @@ PyObject *uwsgi_pyimport_by_filename(char *name, char *filename) { pyfile = fopen(filename, "r"); if (!pyfile) { - uwsgi_error("fopen()"); + uwsgi_log("failed to open python file %s\n", filename); exit(1); } diff --git a/uwsgi.c b/uwsgi.c index 8da0dd7b..9b5c0a7a 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -356,8 +356,6 @@ int main(int argc, char *argv[], char *envp[]) #ifdef UWSGI_DEBUG struct utsname uuts; - int so_bufsize; - socklen_t so_bufsize_len; #endif signal(SIGHUP, SIG_IGN); @@ -697,6 +695,12 @@ int uwsgi_start(void *v_argv) { char **argv = v_argv; +#ifdef UWSGI_DEBUG + int so_bufsize; + socklen_t so_bufsize_len; +#endif + + #ifdef UWSGI_HTTP pid_t http_pid; #endif