sentry-laravel
sentry-laravel copied to clipboard
Sentry log channel ignores report method on a handled exception
Environment
How do you use Sentry? Sentry SaaS (sentry.io)
Which SDK and version?
Laravel 8.0 sentry/sentry-laravel:2.11.0
Steps to Reproduce
- Configure Sentry in Laravel Log channels by following this guide
- Create an exception with a report method that returns false as shown in the snippet below (documented here).
- Throw this exception somewhere.
public function report()
{
return false;
}
Expected Result
Exception is NOT reported to Sentry.
Actual Result
Exception is reported to Sentry. You have to explicitly add an exception to the exception handler's $dontReport
array if you want to ignore it.