From 47bda38a153eb48b685c2892d50c9a5aa9b27d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Thu, 11 May 2023 00:11:39 +0300 Subject: [PATCH 1/2] sentry config --- config/sentry.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/sentry.php b/config/sentry.php index d6e49e1c9..699066361 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -2,6 +2,7 @@ return [ + // @see https://docs.sentry.io/product/sentry-basics/dsn-explainer/ 'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')), // capture release as git sha @@ -81,4 +82,6 @@ return [ 'traces_sampler' => [env('SENTRY_TRACES_SAMPLER_CLASS', 'App\\Exceptions\\Trackers\\Sentry'), 'tracesSampler'], + 'profiles_sample_rate' => env('SENTRY_PROFILES_SAMPLE_RATE') === null ? null : (float) env('SENTRY_PROFILES_SAMPLE_RATE'), + ]; From cb486bfe9d8d14cd753e70a463a8f54e719bb040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Thu, 11 May 2023 09:22:34 +0300 Subject: [PATCH 2/2] fixed translation --- app/Listeners/Email/SendInvalidEmailNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Listeners/Email/SendInvalidEmailNotification.php b/app/Listeners/Email/SendInvalidEmailNotification.php index 8d5794a88..2ad5e82fe 100644 --- a/app/Listeners/Email/SendInvalidEmailNotification.php +++ b/app/Listeners/Email/SendInvalidEmailNotification.php @@ -44,7 +44,7 @@ class SendInvalidEmailNotification return; } - $type = trans('general.users', 1); + $type = trans_choice('general.users', 1); foreach ($users as $user) { if ($user->cannot('read-notifications')) {