dbtlr / php-airbrake

A PHP 5.3 library for sending errors to the Airbrake.io service.
http://airbrake.io
MIT License
121 stars 44 forks source link

De-duplicate errors by removing variable project_dir #48

Closed aminin closed 9 years ago

aminin commented 9 years ago

If project root changes beetwen versions, the same error is duplicated.

E.g.:

  1. Test project root in /var/www/foo/revisions/20150813163945/src/IndexController.php on line 46
  2. Test project root in /var/www/foo/revisions/20150814102511/src/IndexController.php on line 46

If the configuration parameter projectRoot is set, it should be removed from error messages and backtrace items.

So that the above errors turn into

Test project root in [project_root]/src/IndexController.php on line 46