mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 14:14:52 +00:00
fix: reporting handler
This commit is contained in:
1 parent
3749970831
commit
fbaec769f0
4 files changed
+7
-5
No files matched your search
@@ -55,10 +55,12 @@ class Handler extends ExceptionHandler
|
||||
}
|
||||
app('sentry')->configureScope(
|
||||
function (Scope $scope) {
|
||||
$email = auth()?->user() ? auth()->user()->email : 'guest';
|
||||
$instanceAdmin = User::find(0)->email ?? 'admin@localhost';
|
||||
$scope->setUser(
|
||||
[
|
||||
'email' => auth()->user()->email,
|
||||
'instanceAdmin' => User::find(0)->email
|
||||
'email' => $email,
|
||||
'instanceAdmin' => $instanceAdmin
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user