mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-27 18:58:54 +08:00
update
This commit is contained in:
parent
6e30b385e8
commit
ea67b25bb5
2 changed files with 6 additions and 2 deletions
|
@ -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) => {
|
||||||
|
|
|
@ -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 + ' ';
|
||||||
|
|
Loading…
Reference in a new issue