diff options
author | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2021-06-18 13:22:31 +1000 |
---|---|---|
committer | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2021-06-18 13:22:31 +1000 |
commit | 6edae02752484b3b1dc1f603e1ba085ff258df9c (patch) | |
tree | 5b8f18382a97d454e5a5c98d8b9e6ee40e762dd1 /src/server | |
parent | 899b6a5ef60e09f56adf2683592298c73230c00f (diff) | |
download | mod_wsgi-6edae02752484b3b1dc1f603e1ba085ff258df9c.tar.gz |
Restore missing logging.
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/mod_wsgi.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/server/mod_wsgi.c b/src/server/mod_wsgi.c index 5f507ce..b0492cc 100644 --- a/src/server/mod_wsgi.c +++ b/src/server/mod_wsgi.c @@ -3650,6 +3650,39 @@ static PyObject *wsgi_load_source(apr_pool_t *pool, request_rec *r, PyObject *result = NULL; char *source_buf = NULL; + if (exists) { + Py_BEGIN_ALLOW_THREADS + if (r) { + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, + "mod_wsgi (pid=%d, process='%s', application='%s'): " + "Reloading WSGI script '%s'.", getpid(), + process_group, application_group, filename); + } + else { + ap_log_error(APLOG_MARK, APLOG_INFO, 0, wsgi_server, + "mod_wsgi (pid=%d, process='%s', application='%s'): " + "Reloading WSGI script '%s'.", getpid(), + process_group, application_group, filename); + } + Py_END_ALLOW_THREADS + } + else { + Py_BEGIN_ALLOW_THREADS + if (r) { + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, + "mod_wsgi (pid=%d, process='%s', application='%s'): " + "Loading Python script file '%s'.", getpid(), + process_group, application_group, filename); + } + else { + ap_log_error(APLOG_MARK, APLOG_INFO, 0, wsgi_server, + "mod_wsgi (pid=%d, process='%s', application='%s'): " + "Loading Python script file '%s'.", getpid(), + process_group, application_group, filename); + } + Py_END_ALLOW_THREADS + } + io_module = PyImport_ImportModule("io"); if (!io_module) { goto load_source_finally; |