Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-5027

REST API does not log exceptions

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.1
    • 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:

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              pawel.niedzielski@ibexa.co Paweł Niedzielski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: