mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 09:13:14 +00:00
Add email to user
This commit is contained in:
1 parent
2c9983046c
commit
9cda671aef
1 file changed
+7
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user