Closed oddnavy closed 3 years ago
@oddnavy if the controller logs thrown exceptions (I just opened a PR to add logging), I believe you should be able to send all errors by adding a log target for Rollbar in your project's config/app.php
file.
Just released Element API 2.7.0, which now logs all exceptions thrown while resolving requests.
Is there a way to log exceptions caught in the element-api actionIndex? The code looks like it catches exceptions thrown.
https://github.com/craftcms/element-api/blob/v2/src/controllers/DefaultController.php#L165
For context, we want to log exceptions that cause 500s in my element-api to Rollbar.
Current code to log exceptions: