Update Sentry config

This commit is contained in:
MICHAEL JACKSON 2017-05-19 10:35:32 -07:00
parent 3e10fabe43
commit 161a890623
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ const errorHandler = (err, req, res, next) => {
const raven = require('raven')
if (process.env.SENTRY_DSN)
raven.config(process.env.SENTRY_DSN).install()
raven.config(process.env.SENTRY_DSN, {
environment: process.env.NODE_ENV || 'development',
autoBreadcrumbs: true
}).install()
const createServer = (config) => {
const app = express()