@dialonce/boot
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "@dialonce/boot", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Dial Once's node microservice boot script", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
module.exports = function(token) { | ||
require('bugsnag').register(token, { | ||
const bugsnag = require('bugsnag'); | ||
bugsnag.register(token, { | ||
releaseStage: process.env.NODE_ENV || 'dev', | ||
notifyReleaseStages: ['production', 'staging'] | ||
}); | ||
return bugsnag; | ||
}; |
@@ -9,4 +9,6 @@ require('./env'); | ||
require('./bugsnag')(config.BUGS_TOKEN); | ||
require('./winston')(config.LOGS_TOKEN); | ||
return { | ||
notifier: require('./bugsnag')(config.BUGS_TOKEN), | ||
logger: require('./winston')(config.LOGS_TOKEN) | ||
}; | ||
}; |
3837
70