fix: temporarily remove rollbar (#37333)

* fix: Temporarily remove rollbar

* Reverting changes to api-server
This commit is contained in:
Kristofer Koishigawa
2019-10-16 15:50:56 +09:00
committed by mrugesh
parent 8e07bbb7a0
commit 3cd0bf0106
2 changed files with 2 additions and 3 deletions

View File

@ -159,7 +159,6 @@ exports.onCreateWebpackConfig = ({ plugins, actions }) => {
process.env.HOME_PATH || 'http://localhost:3000' process.env.HOME_PATH || 'http://localhost:3000'
), ),
STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || ''), STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || ''),
ROLLBAR_CLIENT_ID: JSON.stringify(process.env.ROLLBAR_CLIENT_ID || ''),
ENVIRONMENT: JSON.stringify( ENVIRONMENT: JSON.stringify(
process.env.FREECODECAMP_NODE_ENV || 'development' process.env.FREECODECAMP_NODE_ENV || 'development'
), ),

View File

@ -1,7 +1,7 @@
/* global Rollbar ENVIRONMENT */ /* global ENVIRONMENT */
export function reportClientSideError(e, message = 'Unhandled error') { export function reportClientSideError(e, message = 'Unhandled error') {
return ENVIRONMENT === 'production' return ENVIRONMENT === 'production'
? Rollbar.error(`Client: ${message}`, e) ? console.error(`Client: ${message}`, e)
: console.error(`Stub Rollbar call - Client: ${message}`, e); : console.error(`Stub Rollbar call - Client: ${message}`, e);
} }