Skip to content

Commit

Permalink
use fork of yii2-sentry to potentially fix IDP-779
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Dec 9, 2024
1 parent 4344c68 commit 38d2d70
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 121 deletions.
8 changes: 7 additions & 1 deletion application/common/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use common\components\MfaBackendManager;
use common\components\MfaBackendTotp;
use common\components\MfaBackendWebAuthn;
use notamedia\sentry\SentryTarget;
use Sentry\Event;
use Sil\JsonLog\target\EmailServiceTarget;
use Sil\JsonLog\target\JsonStreamTarget;
use Sil\PhpEnv\Env;
use Sil\Sentry\SentryTarget;
use yii\db\Connection;
use yii\helpers\ArrayHelper;
use yii\helpers\Json;
Expand Down Expand Up @@ -197,6 +197,12 @@
'enabled' => !empty(Env::get('SENTRY_DSN')),
'dsn' => Env::get('SENTRY_DSN'),
'levels' => ['error'],
'except' => [
'yii\web\HttpException:400', // BadRequest
'yii\web\HttpException:401', // Unauthorized
'yii\web\HttpException:404', // NotFound
'yii\web\HttpException:409', // Conflict
],
'context' => true,
// Additional options for `Sentry\init`
// https://docs.sentry.io/platforms/php/configuration/options
Expand Down
6 changes: 3 additions & 3 deletions application/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "silinternational/idp-id-broker",
"minimum-stability": "stable",
"minimum-stability": "dev",
"repositories": [
{
"type": "composer",
Expand All @@ -26,8 +26,8 @@
"yiisoft/yii2-swiftmailer": "^2.0",
"ramsey/uuid": "^3.6",
"guzzlehttp/guzzle": "^6.2",
"notamedia/yii2-sentry": "^1.7",
"webmozart/assert": "^1.2"
"webmozart/assert": "^1.2",
"silinternational/yii2-sentry": "dev-master"
},
"require-dev": {
"aws/aws-sdk-php": "~3.288.1",
Expand Down
Loading

0 comments on commit 38d2d70

Please sign in to comment.