#589: added white-list urls for logger

This commit is contained in:
SleepWalker 2017-03-01 07:44:11 +02:00
parent 863aa03547
commit 09baa2a398

View File

@ -1,6 +1,7 @@
import Raven from 'raven-js'; import Raven from 'raven-js';
const isTest = process.env.__TEST__; // eslint-disable-line const isTest = process.env.__TEST__; // eslint-disable-line
const isProduction = process.env.__PROD__; // eslint-disable-line
const logger = { const logger = {
init({sentryCdn}) { init({sentryCdn}) {
@ -18,7 +19,10 @@ const logger = {
} }
return data; return data;
} },
whitelistUrls: isProduction ? [
/ely\.by/
] : []
}).install(); }).install();
window.addEventListener('unhandledrejection', (event) => { window.addEventListener('unhandledrejection', (event) => {