Skip to content

Commit

Permalink
fix(config): filter out bugsnag key
Browse files Browse the repository at this point in the history
  • Loading branch information
serge1peshcoff committed May 24, 2020
1 parent 3763754 commit 90030cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ const config = {
'password',
'postgres.password',
'access_token',
'refresh_token'
'refresh_token',
'bugsnag_key'
],
bugsnagKey: process.env.BUGSNAG_KEY_CORE || 'CHANGEME'
bugsnag_key: process.env.BUGSNAG_KEY_CORE || 'CHANGEME'
},
development: {

Expand Down
2 changes: 1 addition & 1 deletion lib/bugsnag.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const logger = require('./logger');
const packageInfo = require('../package.json');

const bugsnagClient = bugsnag({
apiKey: config.bugsnagKey,
apiKey: config.bugsnag_key,
logger,
appVersion: packageInfo.version,
hostname: config.host,
Expand Down

0 comments on commit 90030cb

Please sign in to comment.