feat: add emoji to startup logs, because procrastination.

isekai-main
Julian Lam 3 years ago
parent 9f225e7062
commit 5176fb1544

@ -83,7 +83,7 @@ exports.listen = async function () {
helpers.register(); helpers.register();
logger.init(app); logger.init(app);
await initializeNodeBB(); await initializeNodeBB();
winston.info('NodeBB Ready'); winston.info('🪄 NodeBB Ready');
require('./socket.io').server.emit('event:nodebb.ready', { require('./socket.io').server.emit('event:nodebb.ready', {
'cache-buster': meta.config['cache-buster'], 'cache-buster': meta.config['cache-buster'],
@ -258,7 +258,7 @@ async function listen() {
} }
port = parseInt(port, 10); port = parseInt(port, 10);
if ((port !== 80 && port !== 443) || nconf.get('trust_proxy') === true) { if ((port !== 80 && port !== 443) || nconf.get('trust_proxy') === true) {
winston.info('Enabling \'trust proxy\''); winston.info('🤝 Enabling \'trust proxy\'');
app.enable('trust proxy'); app.enable('trust proxy');
} }
@ -288,8 +288,8 @@ async function listen() {
reject(err); reject(err);
} }
winston.info(`NodeBB is now listening on: ${chalk.yellow(onText)}`); winston.info(`📡 NodeBB is now listening on: ${chalk.yellow(onText)}`);
winston.info(`Canonical URL: ${chalk.yellow(nconf.get('url'))}`); winston.info(`🔗 Canonical URL: ${chalk.yellow(nconf.get('url'))}`);
if (oldUmask) { if (oldUmask) {
process.umask(oldUmask); process.umask(oldUmask);
} }

Loading…
Cancel
Save