Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore certain error classes #61

Open
nikserg opened this issue Jun 6, 2022 · 1 comment
Open

Ignore certain error classes #61

nikserg opened this issue Jun 6, 2022 · 1 comment

Comments

@nikserg
Copy link

nikserg commented Jun 6, 2022

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]']
                ],
            ] 
]
@kasoft
Copy link

kasoft commented Sep 13, 2023

This Question is answered in Issue #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants