log the nodejs version in use

This commit is contained in:
Anton Georgiev 2018-03-21 19:16:07 +00:00
parent d90f1ae3c2
commit c698ad5add

View File

@ -6,7 +6,8 @@ import Redis from './redis';
Meteor.startup(() => { Meteor.startup(() => {
const APP_CONFIG = Meteor.settings.public.app; const APP_CONFIG = Meteor.settings.public.app;
Logger.info(`SERVER STARTED. DEV_ENV=${Meteor.isDevelopment} PROD_ENV=${Meteor.isProduction}`, APP_CONFIG); const env = Meteor.isDevelopment ? 'development' : 'production';
Logger.warn(`SERVER STARTED. ENV=${env}, nodejs version=${process.version}`, APP_CONFIG);
}); });
WebApp.connectHandlers.use('/check', (req, res) => { WebApp.connectHandlers.use('/check', (req, res) => {