Beautified launch printout
This commit is contained in:
parent
6ae652b47c
commit
cb3fc9bb91
3 changed files with 26 additions and 3 deletions
|
|
@ -19,6 +19,7 @@ const {mongoose} = require('mongoose');
|
|||
|
||||
//Local Imports
|
||||
const config = require('./../../config.json');
|
||||
const loggerUtils = require('./../utils/loggerUtils');
|
||||
|
||||
/**
|
||||
* DB Schema for single document for keeping track of server stats
|
||||
|
|
@ -94,8 +95,7 @@ statSchema.statics.incrementLaunchCount = async function(){
|
|||
this.firstLaunch = stats.firstLaunch;
|
||||
|
||||
//print bootup message to console.
|
||||
console.log(`${config.instanceName}(Powered by Canopy) initialized. This server has booted ${stats.launchCount} time${stats.launchCount == 1 ? '' : 's'}.`)
|
||||
console.log(`First booted on ${stats.firstLaunch}.`);
|
||||
loggerUtils.welcomeWagon(stats.launchCount, stats.firstLaunch);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue