diff --git a/lib/errors.js b/lib/errors.js index da126f1b..61c66423 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -7,7 +7,6 @@ let bugsnag; if (config.bugsnagCode) { bugsnag = require('bugsnag'); bugsnag.register(config.bugsnagCode); - bugsnag.notify(new Error('Non-fatal')); } module.exports.notify = (...args) => { diff --git a/server.js b/server.js index 074b5481..3d34c21a 100644 --- a/server.js +++ b/server.js @@ -13,8 +13,13 @@ const packageData = require('./package.json'); log.level = config.log.level; require('./logger'); +errors.notify(new Error('Starting mail server application')); + const printLogo = () => { - let logo = fs.readFileSync(__dirname + '/logo.txt', 'utf-8').replace(/^\n+|\n+$/g, '').split('\n'); + let logo = fs + .readFileSync(__dirname + '/logo.txt', 'utf-8') + .replace(/^\n+|\n+$/g, '') + .split('\n'); let columnLength = logo.map(l => l.length).reduce((max, val) => (val > max ? val : max), 0); let versionString = ' ' + packageData.name + '@' + packageData.version + ' ';