sentry-laravel icon indicating copy to clipboard operation
sentry-laravel copied to clipboard

Sentry log channel ignores report method on a handled exception

Open adiachenko opened this issue 3 years ago • 0 comments

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

  1. Configure Sentry in Laravel Log channels by following this guide
  2. Create an exception with a report method that returns false as shown in the snippet below (documented here).
  3. 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.

adiachenko avatar Feb 04 '22 18:02 adiachenko