Skip to content

Commit 08835df

Browse files
Details of Python exception not logged when error occurs parsing Python script file.
1 parent 8cef4a7 commit 08835df

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/release-notes/version-4.6.2.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ Version 4.6.2
55
Version 4.6.2 of mod_wsgi can be obtained from:
66

77
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.6.2
8+
9+
Bugs Fixed
10+
----------
11+
12+
* Full details of error not logged when a Python script file could not be
13+
loaded due to a failure when parsing Python code.

src/server/mod_wsgi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3703,6 +3703,9 @@ static PyObject *wsgi_load_source(apr_pool_t *pool, request_rec *r,
37033703
process_group, application_group, filename);
37043704
}
37053705
Py_END_ALLOW_THREADS
3706+
3707+
wsgi_log_python_error(r, NULL, filename, 0);
3708+
37063709
return NULL;
37073710
}
37083711

0 commit comments

Comments
 (0)