Additional logging / change logging

This commit is contained in:
Tamius Han 2020-12-03 01:05:39 +01:00
parent 38ef7905c7
commit 145b237701
4 changed files with 19 additions and 10 deletions

View File

@ -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;

View File

@ -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");
}

View File

@ -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 <video> tag (element) in seznam imen, ki se lahko pojavijo v razredih oz. id staršev.
// vrne dimenzije predvajalnika (širina, višina)
@ -465,4 +466,8 @@ class PlayerData {
}
}
if (process.env.CHANNEL !== 'stable'){
console.info("PlayerData loaded");
}
export default PlayerData;

View File

@ -9,17 +9,17 @@ import PageInfo from './lib/video-data/PageInfo';
import Logger from './lib/Logger';
if(Debug.debug){
console.log("\n\n\n\n\n\n ——— Sᴛλʀᴛɪɴɢ Uʟᴛʀᴀɪɪʏ ———\n << ʟᴏᴀᴅɪɴɢ ᴍᴀɪɴ ꜰɪʟᴇ >>\n\n\n\n");
if(process.env.CHANNEL !== 'stable'){
console.warm("\n\n\n\n\n\n ——— Sᴛλʀᴛɪɴɢ Uʟᴛʀᴀɪɪʏ ———\n << ʟᴏᴀᴅɪɴɢ ᴍᴀɪɴ ꜰɪʟᴇ >>\n\n\n\n");
try {
if(window.self !== window.top){
console.log("%cWe aren't in an iframe.", "color: #afc, background: #174");
console.info("%cWe aren't in an iframe.", "color: #afc, background: #174");
}
else{
console.log("%cWe are in an iframe!", "color: #fea, background: #d31", window.self, window.top);
console.info("%cWe are in an iframe!", "color: #fea, background: #d31", window.self, window.top);
}
} catch (e) {
console.log("%cWe are in an iframe!", "color: #fea, background: #d31");
console.info("%cWe are in an iframe!", "color: #fea, background: #d31");
}
}