diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 17db86d13..8fe4a1130 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -50,8 +50,13 @@ class Handler extends ExceptionHandler return; } app('sentry')->configureScope( - function (Scope $scope){ - $scope->setUser(['id'=> config('sentry.server_name')]); + function (Scope $scope) { + $scope->setUser( + [ + 'id' => config('sentry.server_name'), + 'email' => auth()->user()->email + ] + ); } ); Integration::captureUnhandledException($e);