Commit a1b22813 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Fix issues with raven-js in production

parent 3801e52c
......@@ -11,4 +11,9 @@ export const verbose = true;
/**
* Url used to send error logs
*/
export const sentryUrl = 'https://13e4a08420af47b3b4c2e9fe3442bfd8@sentry.amiv.ethz.ch/4';
export const sentryUrl = 'https://ef94924605564855bccc26a8ea6f7cfd@sentry.amiv.ethz.ch/4';
/**
* Environment to categorise the logging messages
*/
export const sentryEnvironment = 'development';
......@@ -11,4 +11,9 @@ export const verbose = false;
/**
* Url used to send error logs
*/
export const sentryUrl = 'https://b634a14e6c5d4ebf8c319763f30ff87d:e494d61191434d11981838b1d11d14c1@sentry.amiv.ethz.ch/4';
\ No newline at end of file
export const sentryUrl = 'https://afbda322ccbe4a159da1944cb8f4e757@sentry.amiv.ethz.ch/4';
/**
* Environment to categorise the logging messages
*/
export const sentryEnvironment = 'production';
// src/index.js
import m from 'mithril';
import Raven from 'raven-js';
import { verbose, sentryUrl } from 'config';
import { verbose, sentryUrl, sentryEnvironment } from 'config';
import { loadLanguage, currentLanguage, changeLanguage, isLanguageValid } from './models/language';
import { Error404, Error401 } from './views/errors';
import { isLoggedIn } from './models/auth';
......@@ -26,7 +26,9 @@ import companyList from './views/companies/companyList';
import companyDetail from './views/companies/companyDetail';
import './views/styles/base.less';
Raven.config(sentryUrl).install();
Raven.config(sentryUrl, {
environment: sentryEnvironment,
}).install();
Raven.context(() => {
loadLanguage();
......
Supports Markdown
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