From 3cd0bf01062c602da6c7e9ba233ef470b879e6a5 Mon Sep 17 00:00:00 2001 From: Kristofer Koishigawa Date: Wed, 16 Oct 2019 15:50:56 +0900 Subject: [PATCH] fix: temporarily remove rollbar (#37333) * fix: Temporarily remove rollbar * Reverting changes to api-server --- client/gatsby-node.js | 1 - client/src/utils/report-error.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/gatsby-node.js b/client/gatsby-node.js index 7f9debc834..e2a4e219e3 100644 --- a/client/gatsby-node.js +++ b/client/gatsby-node.js @@ -159,7 +159,6 @@ exports.onCreateWebpackConfig = ({ plugins, actions }) => { process.env.HOME_PATH || 'http://localhost:3000' ), STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || ''), - ROLLBAR_CLIENT_ID: JSON.stringify(process.env.ROLLBAR_CLIENT_ID || ''), ENVIRONMENT: JSON.stringify( process.env.FREECODECAMP_NODE_ENV || 'development' ), diff --git a/client/src/utils/report-error.js b/client/src/utils/report-error.js index 7485acf433..edbdfbab8a 100644 --- a/client/src/utils/report-error.js +++ b/client/src/utils/report-error.js @@ -1,7 +1,7 @@ -/* global Rollbar ENVIRONMENT */ +/* global ENVIRONMENT */ export function reportClientSideError(e, message = 'Unhandled error') { return ENVIRONMENT === 'production' - ? Rollbar.error(`Client: ${message}`, e) + ? console.error(`Client: ${message}`, e) : console.error(`Stub Rollbar call - Client: ${message}`, e); }