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

Ignore certain error classes

Open nikserg opened this issue 2 years ago • 1 comments

I want to ignore some error classes, like yii\web\NotFoundHttpException. How should I modify config?

'log'          => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets'    => [
                [
                    'class'   => 'notamedia\sentry\SentryTarget',
                    'dsn'     => 'https://...@.../3',
                    'levels'  => ['error', 'warning'],
                    // Write the context information (the default is true):
                    'context' => true,
                    // Additional options for `Sentry\init`:
                    //'clientOptions' => ['release' => '[email protected]']
                ],
            ] 
]

nikserg avatar Jun 06 '22 05:06 nikserg

This Question is answered in Issue #67

kasoft avatar Sep 13 '23 16:09 kasoft