Skip to content

Commit

Permalink
- removed log rocket
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Jan 12, 2021
1 parent 2fe8723 commit bc7ee58
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
22 changes: 0 additions & 22 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { DJANGO_CONTEXT } from './utils/djangoContext';
// Sentry logging
import { init, configureScope } from '@sentry/browser';
// Setup log rocket logging
import LogRocket from 'logrocket';
import { Provider } from 'react-redux';
import { applyMiddleware, createStore } from 'redux';
import { rootReducer } from './reducers/rootReducer';
Expand All @@ -16,27 +15,6 @@ import { composeWithDevTools } from 'redux-devtools-extension';

require('react-hot-loader/patch');

if (process.env.NODE_ENV === 'production') {
LogRocket.init('eoalzb/fragalysis');
// This is the log rocket setup

LogRocket.identify(DJANGO_CONTEXT['username'], {
pk: DJANGO_CONTEXT['pk'],
name: DJANGO_CONTEXT['name'],
email: DJANGO_CONTEXT['email']
});

init({
dsn: 'https://27fa0675f555431aa02ca552e93d8cfb@sentry.io/1298290'
});

LogRocket.getSessionURL(sessionURL => {
configureScope(scope => {
scope.setExtra('logRocketURL', sessionURL);
});
});
}

const middlewareEnhancer = applyMiddleware(
//loggerMiddleware,
thunkMiddleware,
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"js-base64": "^2.5.2",
"jszip": "^3.2.2",
"lodash": "^4.17.15",
"logrocket": "^1.0.3",
"moment": "^2.24.0",
"ngl": "2.0.0-dev.37",
"react": "^16.11.0",
Expand Down

0 comments on commit bc7ee58

Please sign in to comment.