mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 18:44:01 +08:00
Send IDs to Sentry so issues can be sorted by number of impacted users
This commit is contained in:
parent
353ee40318
commit
b593f47661
4 changed files with 10 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,7 +9,6 @@
|
|||
**/arclib
|
||||
|
||||
##### Client Private Plugins (symlinked)
|
||||
**/app/src/error-logger-extensions
|
||||
**/internal_packages/composer-mail-merge
|
||||
**/internal_packages/composer-scheduler
|
||||
|
||||
|
|
|
@ -35,12 +35,9 @@ module.exports = grunt => {
|
|||
'src/**/*.es6',
|
||||
'src/**/*.es',
|
||||
'src/**/*.jsx',
|
||||
'src/K2/**/*.js', // K2 doesn't use ES6 extension, lint it anyway!
|
||||
'!src/K2/packages/local-private/src/error-logger-extensions/*.js',
|
||||
'!src/**/node_modules/**/*.es6',
|
||||
'!src/**/node_modules/**/*.es',
|
||||
'!src/**/node_modules/**/*.jsx',
|
||||
'!src/K2/**/node_modules/**/*.js',
|
||||
'!internal_packages/**/node_modules/**/*.es6',
|
||||
'!internal_packages/**/node_modules/**/*.es',
|
||||
'!internal_packages/**/node_modules/**/*.jsx',
|
||||
|
|
|
@ -59,7 +59,7 @@ module.exports = function(grunt) {
|
|||
|
||||
let srcPath = path.resolve(__dirname, '..', '..', 'src');
|
||||
|
||||
const blacklist = ['/K2/', 'legacy-edgehill-api', 'edgehill-api'];
|
||||
const blacklist = ['legacy-edgehill-api', 'edgehill-api'];
|
||||
|
||||
let in_blacklist = function(file) {
|
||||
for (var i = 0; i < blacklist.length; i++) {
|
||||
|
|
|
@ -56,6 +56,15 @@ module.exports = class RavenErrorReporter {
|
|||
}
|
||||
).install();
|
||||
|
||||
// Just give us something random that we can use to tell how many users are impacted
|
||||
// by each bug. This is important because sometimes one user will hit an exception 1,000
|
||||
// times and skew the Sentry data.
|
||||
Raven.mergeContext({
|
||||
user: {
|
||||
id: this.deviceHash,
|
||||
},
|
||||
});
|
||||
|
||||
Raven.on('error', e => {
|
||||
console.log(`Raven: ${e.statusCode} - ${e.reason}`);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue