mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-29 00:10:54 +05:30
#589: added white-list urls for logger
This commit is contained in:
parent
863aa03547
commit
09baa2a398
@ -1,6 +1,7 @@
|
||||
import Raven from 'raven-js';
|
||||
|
||||
const isTest = process.env.__TEST__; // eslint-disable-line
|
||||
const isProduction = process.env.__PROD__; // eslint-disable-line
|
||||
|
||||
const logger = {
|
||||
init({sentryCdn}) {
|
||||
@ -18,7 +19,10 @@ const logger = {
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
},
|
||||
whitelistUrls: isProduction ? [
|
||||
/ely\.by/
|
||||
] : []
|
||||
}).install();
|
||||
|
||||
window.addEventListener('unhandledrejection', (event) => {
|
||||
|
Loading…
Reference in New Issue
Block a user