Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
None
Description
Our REST API does not log exceptions when they occur, making it harder to debug requests.
While it is possible to read stacktrace in th REST response, it is cumbersome and requires response to actually remain somewhere (which might not always be the case).
Instead, I suggest we log exceptions in a similar fashion as built-in Symfony's ErrorListener service does it.
Ideally, we would simply allow ErrorListener to run and log exceptions this way (it registers itself with priority 0 and -128, for logging and generating response respectively), but that would be a BC break on our side, because we would need to change several service priorities - which might mess up our users configurations, if they rely on us having exception listeners with specific priorities.
Currently:
I would expect to have instead: