This commit is contained in:
Andris Reinman 2017-08-31 14:44:05 +03:00
parent 6e30b385e8
commit ea67b25bb5
2 changed files with 6 additions and 2 deletions

View file

@ -7,7 +7,6 @@ let bugsnag;
if (config.bugsnagCode) { if (config.bugsnagCode) {
bugsnag = require('bugsnag'); bugsnag = require('bugsnag');
bugsnag.register(config.bugsnagCode); bugsnag.register(config.bugsnagCode);
bugsnag.notify(new Error('Non-fatal'));
} }
module.exports.notify = (...args) => { module.exports.notify = (...args) => {

View file

@ -13,8 +13,13 @@ const packageData = require('./package.json');
log.level = config.log.level; log.level = config.log.level;
require('./logger'); require('./logger');
errors.notify(new Error('Starting mail server application'));
const printLogo = () => { 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 columnLength = logo.map(l => l.length).reduce((max, val) => (val > max ? val : max), 0);
let versionString = ' ' + packageData.name + '@' + packageData.version + ' '; let versionString = ' ' + packageData.name + '@' + packageData.version + ' ';