This commit is contained in:
UKDTOM 2020-09-28 23:56:42 +02:00
parent d1ed09f063
commit a3be9ed38c
2 changed files with 7 additions and 1 deletions

View file

@ -23,6 +23,11 @@ const wtutils = new class WTUtils {
return configFileName;
}
get RunningOS(){
return process.platform;
}
get PMSHeader(){
var headers = {
"Accept": "application/json",

View file

@ -34,7 +34,8 @@ log.transports.file.fileName = wtutils.AppName;
// Set logfile to 10Mb
log.transports.file.maxSize = wtconfig.get('Log.maxSize', 1048576);
log.info('*********************************')
log.info('Starting ' + wtutils.AppName + ' Version:' + wtutils.AppVersion);
log.info(`Starting ${wtutils.AppName} Version: ${wtutils.AppVersion}`);
log.info(`Running on ${wtutils.RunningOS}`)
// Logging ended
// Prepopulate config file with defaults