statikbe / craft-sentry

MIT License
2 stars 1 forks source link

excludedCodes setting ignored #2

Closed nstCactus closed 3 years ago

nstCactus commented 4 years ago

Even though we configured the plugin to ignore 404 errors, every time someone hits a 404 page, we get an exception logged in Sentry :

yii\web\NotFoundHttpException: Template not found: should-trigger-a-404

Here is the content of our craft-sentry.php config file:

<?php

return [
    'enabled'       => true,
    'anonymous'     => true,
    'clientDsn'     => getenv('SENTRY_DSN'),
    'excludedCodes' => ['400', '404', '429'],
    'release'       => getenv('SENTRY_RELEASE') ?: null,
];

This for logged in users and anonymous users.

nstCactus commented 3 years ago

1.0.3 seems to have fixed this.