Send user information to sentry without email
This commit is contained in:
parent
0f1e06e19c
commit
8e6e730c80
1 changed files with 3 additions and 5 deletions
|
@ -6,9 +6,7 @@ const { key, enabled, user, environment } = gon.sentry || {};
|
|||
if (enabled && key) {
|
||||
Sentry.init({ dsn: key, environment });
|
||||
|
||||
if (user.email) {
|
||||
Sentry.configureScope(scope => {
|
||||
scope.setUser(user);
|
||||
});
|
||||
}
|
||||
Sentry.configureScope(scope => {
|
||||
scope.setUser(user);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue