diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 9bfde1793..19f47f30b 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -3,6 +3,7 @@ namespace App\Exceptions; use App\Models\InstanceSettings; +use App\Models\User; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Sentry\Laravel\Integration; use Sentry\State\Scope; @@ -56,8 +57,8 @@ class Handler extends ExceptionHandler function (Scope $scope) { $scope->setUser( [ - 'id' => config('sentry.server_name'), - 'email' => auth()->user()->email + 'email' => auth()->user()->email, + 'instanceAdmin' => User::find(0)->email ] ); } diff --git a/config/sentry.php b/config/sentry.php index fa2378cb0..9e80be3b7 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,8 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.38', - 'server_name' => env('APP_ID', 'coolify'), + 'release' => '4.0.0-beta.39', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index e1d830d38..8d1293e1f 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@