Log level during startup changed

This commit is contained in:
UKDTOM 2020-09-29 00:02:28 +02:00
parent a3be9ed38c
commit e0fac7920f

View file

@ -36,6 +36,7 @@ log.transports.file.maxSize = wtconfig.get('Log.maxSize', 1048576);
log.info('*********************************') log.info('*********************************')
log.info(`Starting ${wtutils.AppName} Version: ${wtutils.AppVersion}`); log.info(`Starting ${wtutils.AppName} Version: ${wtutils.AppVersion}`);
log.info(`Running on ${wtutils.RunningOS}`) log.info(`Running on ${wtutils.RunningOS}`)
log.info(`Log level set to ${log.transports.file.level}`)
// Logging ended // Logging ended
// Prepopulate config file with defaults // Prepopulate config file with defaults
@ -48,9 +49,9 @@ if (wtconfig.get("general.version", "") != wtutils.AppVersion){
var fs = require('fs'); var fs = require('fs');
var prefs = JSON.parse(fs.readFileSync(wtutils.ConfigFileName, 'utf8')); var prefs = JSON.parse(fs.readFileSync(wtutils.ConfigFileName, 'utf8'));
delete prefs ['Developer']; delete prefs ['Developer'];
log.info('***** Prefs *****'); log.verbose('***** Prefs *****');
log.info(prefs); log.verbose(prefs);
log.info('***** Prefs Ended *****'); log.verbose('***** Prefs Ended *****');
// Get saved language to use, and default to en // Get saved language to use, and default to en
i18n.locale = wtconfig.get('General.language', 'en') i18n.locale = wtconfig.get('General.language', 'en')