Sentry-php: `handleFatalError` will catch any type of error, which results in duplicate Sentry entries

Created on 5 Aug 2016  路  1Comment  路  Source: getsentry/sentry-php

The function handleFatalError will currently catch all error that handleError will catch as well. For example: we have Sentry configured to catch warnings as well. When the last error on a page is a warning, it will be caught by handleError and finally by handleFatalError in the shutdown function. This means we get 2 entries in Sentry.

I think there are 2 possible solutions for this:

  1. Only catch fatal errors in handleFatalError, as the name implies
  2. Check if error_get_last() has already been reported by handleError

Most helpful comment

This is resolved now

>All comments

This is resolved now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anka-213 picture anka-213  路  6Comments

m1guelpf picture m1guelpf  路  7Comments

mitchhentges picture mitchhentges  路  3Comments

codepuncher picture codepuncher  路  6Comments

Quetzacoalt91 picture Quetzacoalt91  路  4Comments