added sentry to server code
This commit is contained in:
parent
2691dfcf2f
commit
2b4df1cd51
5 changed files with 52 additions and 20 deletions
|
@ -25,6 +25,11 @@ const conf = convict({
|
|||
sentry_id: {
|
||||
format: String,
|
||||
default: 'https://cdf9a4f43a584f759586af8ceb2194f2@sentry.prod.mozaws.net/238',
|
||||
env: 'P2P_SENTRY_CLIENT'
|
||||
},
|
||||
sentry_dsn: {
|
||||
format: String,
|
||||
default: 'localhost',
|
||||
env: 'P2P_SENTRY_DSN'
|
||||
},
|
||||
env: {
|
||||
|
@ -39,7 +44,8 @@ conf.validate({ allowed: 'strict' });
|
|||
|
||||
const props = conf.getProperties();
|
||||
module.exports = props;
|
||||
|
||||
console.log(props.sentry_dsn)
|
||||
module.exports.notLocalHost =
|
||||
props.env === 'production' &&
|
||||
props.s3_bucket !== 'localhost';
|
||||
props.s3_bucket !== 'localhost' &&
|
||||
props.sentry_dsn !== 'localhost';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue