From 145b237701e7e13a01a681bff4486fdcf63fc3f2 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 3 Dec 2020 01:05:39 +0100 Subject: [PATCH] Additional logging / change logging --- src/ext/lib/ActionHandler.js | 4 ++-- src/ext/lib/Settings.js | 6 +++++- src/ext/lib/video-data/PlayerData.js | 9 +++++++-- src/ext/uw.js | 10 +++++----- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/ext/lib/ActionHandler.js b/src/ext/lib/ActionHandler.js index dd34e3e..5430859 100644 --- a/src/ext/lib/ActionHandler.js +++ b/src/ext/lib/ActionHandler.js @@ -3,7 +3,7 @@ import PlayerData from './video-data/PlayerData'; import ExtensionMode from '../../common/enums/extension-mode.enum'; if(process.env.CHANNEL !== 'stable'){ - console.log("Loading ActionHandler"); + console.info("Loading ActionHandler"); } class ActionHandler { @@ -332,7 +332,7 @@ class ActionHandler { } if(process.env.CHANNEL !== 'stable'){ - console.log("ActionHandler loaded"); + console.info("ActionHandler loaded"); } export default ActionHandler; diff --git a/src/ext/lib/Settings.js b/src/ext/lib/Settings.js index 6597cc1..3c873c3 100644 --- a/src/ext/lib/Settings.js +++ b/src/ext/lib/Settings.js @@ -9,7 +9,7 @@ import ExtensionConfPatch from '../conf/ExtConfPatches'; import CropModePersistence from '../../common/enums/crop-mode-persistence.enum'; if(process.env.CHANNEL !== 'stable'){ - console.log("Loading Settings"); + console.info("Loading Settings"); } class Settings { @@ -589,3 +589,7 @@ class Settings { } export default Settings; + +if(process.env.CHANNEL !== 'stable'){ + console.info("Settings loaded"); +} diff --git a/src/ext/lib/video-data/PlayerData.js b/src/ext/lib/video-data/PlayerData.js index cf67834..460a3e1 100644 --- a/src/ext/lib/video-data/PlayerData.js +++ b/src/ext/lib/video-data/PlayerData.js @@ -2,8 +2,9 @@ import Debug from '../../conf/Debug'; import ExtensionMode from '../../../common/enums/extension-mode.enum' import AspectRatio from '../../../common/enums/aspect-ratio.enum'; -if(Debug.debug) - console.log("Loading: PlayerData.js"); +if (process.env.CHANNEL !== 'stable'){ + console.info("Loading: PlayerData.js"); +} /* sprejme