Unverified Commit b3e917c5 authored by 偏右's avatar 偏右 Committed by GitHub

Replace sentry with rollbar (#253)

parent 51e1ffeb
...@@ -2,7 +2,7 @@ import dva from 'dva'; ...@@ -2,7 +2,7 @@ import dva from 'dva';
import 'moment/locale/zh-cn'; import 'moment/locale/zh-cn';
import './polyfill'; import './polyfill';
import './g2'; import './g2';
import './raven'; import './rollbar';
// import browserHistory from 'history/createBrowserHistory'; // import browserHistory from 'history/createBrowserHistory';
import './index.less'; import './index.less';
......
import Raven from 'raven-js'; import Rollbar from 'rollbar-browser';
// Track error by https://sentry.io/ // Track error by https://sentry.io/
if (location.host === 'preview.pro.ant.design') { if (location.host === 'preview.pro.ant.design') {
Raven.config('https://969e74e863854cf0ae7d7d72f534bd3e@sentry.io/247221').install(); Rollbar.init({
accessToken: '033ca6d7c0eb4cc1831cf470c2649971',
captureUncaught: true,
payload: {
environment: 'production',
},
});
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment