Send user information to sentry without email

This commit is contained in:
Paul Chavard 2019-04-04 11:47:55 +02:00
parent 0f1e06e19c
commit 8e6e730c80

View file

@ -6,9 +6,7 @@ const { key, enabled, user, environment } = gon.sentry || {};
if (enabled && key) { if (enabled && key) {
Sentry.init({ dsn: key, environment }); Sentry.init({ dsn: key, environment });
if (user.email) {
Sentry.configureScope(scope => { Sentry.configureScope(scope => {
scope.setUser(user); scope.setUser(user);
}); });
} }
}