diff --git a/src/services/logger.js b/src/services/logger.js index bbf4aba..a09c205 100644 --- a/src/services/logger.js +++ b/src/services/logger.js @@ -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) => {