-
Notifications
You must be signed in to change notification settings - Fork 50
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
How to ignore yii\web\NotFoundHttpException #67
Comments
Late reply but in case someone is looking for it too return [
'components' => [
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'notamedia\sentry\SentryTarget',
'dsn' => 'http://2682ybvhbs347:[email protected]/1',
'levels' => ['error', 'warning'],
'context' => true,
'clientOptions' => ['release' => '[email protected]'],
'except' => [
'yii\web\HttpException:404',
'yii\web\HttpException:400',
'yii\web\HttpException:403',
],
],
],
],
],
]; |
@Levii22 thanks! |
I used this except code, but it's not working. I sentry there are still errors showing up "yii\web\NotFoundHttpException". I tried also just "NotFoundHttpException" with no success. Any ideas?
|
@kasoft 'except' => [
'yii\web\HttpException:404',
'yii\web\HttpException:403',
], |
Thanks @Levii22 - seems to work. I was on the wrong track an thougt i put a Yii Path like "yii\web\NotFoundHttpException" in the list, but the working thing is "yii\web\HttpException:404" |
Hi.
How to prevent
yii\web\NotFoundHttpException
to be sended to Sentry?The text was updated successfully, but these errors were encountered: