You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by nl...@apache.org on 2005/04/30 09:06:22 UTC
svn commit: r165383 - /httpd/mod_python/trunk/src/mod_python.c
Author: nlehuen
Date: Sat Apr 30 00:06:21 2005
New Revision: 165383
URL: http://svn.apache.org/viewcvs?rev=165383&view=rev
Log:
Fix for MODPYTHON-41
Modified:
httpd/mod_python/trunk/src/mod_python.c
Modified: httpd/mod_python/trunk/src/mod_python.c
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/src/mod_python.c?rev=165383&r1=165382&r2=165383&view=diff
==============================================================================
--- httpd/mod_python/trunk/src/mod_python.c (original)
+++ httpd/mod_python/trunk/src/mod_python.c Sat Apr 30 00:06:21 2005
@@ -98,12 +98,14 @@
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, s,
"make_obcallback: could not import %s.\n", (!MODULENAME) ? "<null>" : MODULENAME);
PyErr_Print();
+ fflush(stderr);
}
if (m && ! ((obCallBack = PyObject_CallMethod(m, INITFUNC, NULL)))) {
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, s,
"make_obcallback: could not call %s.\n", (!INITFUNC) ? "<null>" : INITFUNC);
PyErr_Print();
+ fflush(stderr);
}
return obCallBack;
@@ -1859,6 +1861,7 @@
err:
PyErr_Print();
+ fflush(stderr);
release_interpreter();
return;
}
@@ -1866,8 +1869,10 @@
success:
/* now import the specified module */
if (! PyImport_ImportModule((char *)module_name)) {
- if (PyErr_Occurred())
+ if (PyErr_Occurred()) {
PyErr_Print();
+ fflush(stderr);
+ }
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, s,
"directive_PythonImport: error importing %s", (!module_name) ? "<null>" : module_name);
}