mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-27 05:20:22 +00:00
Log level during startup changed
This commit is contained in:
parent
a3be9ed38c
commit
e0fac7920f
1 changed files with 4 additions and 3 deletions
|
@ -36,6 +36,7 @@ log.transports.file.maxSize = wtconfig.get('Log.maxSize', 1048576);
|
|||
log.info('*********************************')
|
||||
log.info(`Starting ${wtutils.AppName} Version: ${wtutils.AppVersion}`);
|
||||
log.info(`Running on ${wtutils.RunningOS}`)
|
||||
log.info(`Log level set to ${log.transports.file.level}`)
|
||||
// Logging ended
|
||||
|
||||
// Prepopulate config file with defaults
|
||||
|
@ -48,9 +49,9 @@ if (wtconfig.get("general.version", "") != wtutils.AppVersion){
|
|||
var fs = require('fs');
|
||||
var prefs = JSON.parse(fs.readFileSync(wtutils.ConfigFileName, 'utf8'));
|
||||
delete prefs ['Developer'];
|
||||
log.info('***** Prefs *****');
|
||||
log.info(prefs);
|
||||
log.info('***** Prefs Ended *****');
|
||||
log.verbose('***** Prefs *****');
|
||||
log.verbose(prefs);
|
||||
log.verbose('***** Prefs Ended *****');
|
||||
|
||||
// Get saved language to use, and default to en
|
||||
i18n.locale = wtconfig.get('General.language', 'en')
|
||||
|
|
Loading…
Reference in a new issue