-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.8, 4.1.3, 4.2, 4.3
When a normal page request throws an uncaught exception, this is stored in the web server error log, providing debugging is set to at least DEBUG_MINIMAL. (See lib/setuplib.php function default_exception_handler.)
When a REST web service request throws an uncaught exception, this is returned to the caller in JSON or XML format, but is not stored in the web server error log.
This makes it difficult to detect or debug problems involving the mobile app, for example (users of the app who get the error will see a popup, but we don't have any way at the server end of seeing the stack trace, or of counting how often the problem is happening).
I think REST web service requests should have similar behaviour to normal web page requests in this regard, i.e. they should record uncaught exceptions in the server error log. (And also send them to the client, unchanged from current behaviour.)
Note: It's possible this change should also be applied to the other web service handler (SOAP) but that can be done as a separate issue if somebody wants it
- has been marked as being related by
-
MDL-77273 improved behat error detection
-
- Open
-