From a3be9ed38ce1a88af791808e0ffb6e6318d7dd1b Mon Sep 17 00:00:00 2001 From: UKDTOM Date: Mon, 28 Sep 2020 23:56:42 +0200 Subject: [PATCH] Fixed #169 --- src/components/modules/General/wtutils.js | 5 +++++ src/main.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/modules/General/wtutils.js b/src/components/modules/General/wtutils.js index 90a14fd..43e017f 100644 --- a/src/components/modules/General/wtutils.js +++ b/src/components/modules/General/wtutils.js @@ -23,6 +23,11 @@ const wtutils = new class WTUtils { return configFileName; } + get RunningOS(){ + + return process.platform; + } + get PMSHeader(){ var headers = { "Accept": "application/json", diff --git a/src/main.js b/src/main.js index 3925299..95cd5bd 100644 --- a/src/main.js +++ b/src/main.js @@ -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