Pointless changes to logging

This commit is contained in:
Tamius Han 2020-12-03 01:16:57 +01:00
parent 357b7a0365
commit 7900bd18db
9 changed files with 28 additions and 16 deletions

View File

@ -1,5 +1,5 @@
if (process.env.CHANNEL !== 'stable') { if (process.env.CHANNEL !== 'stable') {
console.log('Loaded ExtensionMode'); console.info('Loading ExtensionMode');
} }
@ -12,4 +12,8 @@ var ExtensionMode = Object.freeze({
Enabled: 3, Enabled: 3,
}); });
if (process.env.CHANNEL !== 'stable') {
console.info('Loaded ExtensionMode');
}
export default ExtensionMode; export default ExtensionMode;

View File

@ -1,5 +1,5 @@
if (process.env.CHANNEL !== 'stable') { if (process.env.CHANNEL !== 'stable') {
console.log('Loaded BrowserDetect'); console.info('Loaded BrowserDetect');
} }
@ -12,7 +12,7 @@ const BrowserDetect = {
} }
if (process.env.CHANNEL !== 'stable') { if (process.env.CHANNEL !== 'stable') {
console.log("Loading: BrowserDetect.js\n\nprocess.env.BROWSER:", process.env.BROWSER, "Exporting BrowserDetect:", BrowserDetect); console.info("BrowserDetect loaded:\n\nprocess.env.BROWSER:", process.env.BROWSER, "\nExporting BrowserDetect:", BrowserDetect);
} }
export default BrowserDetect; export default BrowserDetect;

View File

@ -1,6 +1,6 @@
if (process.env.CHANNEL !== 'stable') { if (process.env.CHANNEL !== 'stable') {
console.log('We are not on stable channel. File init will be printed to console.'); console.info('We are not on stable channel. File init will be printed to console.');
console.log('Loaded Debug.js'); console.info('Loading Debug.js');
} }
// Set prod to true when releasing // Set prod to true when releasing
@ -54,9 +54,13 @@ function __disableAllDebug(obj) {
} }
} }
if(Debug.debug) if (Debug.debug) {
console.log("Guess we're debugging ultrawidify then. Debug.js must always load first, and others must follow.\nLoading: Debug.js"); console.info("Guess we're debugging ultrawidify then. Debug.js must always load first, and others must follow.\nLoading: Debug.js");
}
if (process.env.CHANNEL !== 'stable') {
console.info('Loaded Debug.js');
}
export default Debug; export default Debug;

View File

@ -3,7 +3,7 @@ import { decycle } from 'json-cyclic';
import Comms from './comms/Comms'; import Comms from './comms/Comms';
if (process.env.CHANNEL !== 'stable'){ if (process.env.CHANNEL !== 'stable'){
console.log('Loading Logger'); console.info('Loading Logger');
} }
class Logger { class Logger {
@ -560,7 +560,7 @@ class Logger {
} }
if (process.env.CHANNEL !== 'stable'){ if (process.env.CHANNEL !== 'stable'){
console.log('Logger loaded'); console.info('Logger loaded');
} }
export default Logger; export default Logger;

View File

@ -2,7 +2,7 @@ import Debug from '../../conf/Debug';
import BrowserDetect from '../../conf/BrowserDetect'; import BrowserDetect from '../../conf/BrowserDetect';
if (process.env.CHANNEL !== 'stable'){ if (process.env.CHANNEL !== 'stable'){
console.log("Loading Comms"); console.info("Loading Comms");
} }
class Comms { class Comms {
@ -37,7 +37,7 @@ class Comms {
} }
if (process.env.CHANNEL !== 'stable'){ if (process.env.CHANNEL !== 'stable'){
console.log("Comms loaded"); console.info("Comms loaded");
} }
export default Comms; export default Comms;

View File

@ -2,7 +2,7 @@ import Debug from '../../conf/Debug';
import BrowserDetect from '../../conf/BrowserDetect'; import BrowserDetect from '../../conf/BrowserDetect';
if (process.env.CHANNEL !== 'stable'){ if (process.env.CHANNEL !== 'stable'){
console.log("Loading CommsClient"); console.info("Loading CommsClient");
} }
class CommsClient { class CommsClient {
@ -130,7 +130,7 @@ class CommsClient {
} }
if (process.env.CHANNEL !== 'stable'){ if (process.env.CHANNEL !== 'stable'){
console.log("CommsClient loaded"); console.info("CommsClient loaded");
} }
export default CommsClient; export default CommsClient;

View File

@ -5,7 +5,7 @@ import AspectRatio from '../../../common/enums/aspect-ratio.enum';
import CropModePersistence from '../../../common/enums/crop-mode-persistence.enum'; import CropModePersistence from '../../../common/enums/crop-mode-persistence.enum';
if (process.env.CHANNEL !== 'stable'){ if (process.env.CHANNEL !== 'stable'){
console.log("Loading PageInfo"); console.info("Loading PageInfo");
} }
class PageInfo { class PageInfo {
@ -623,4 +623,8 @@ class PageInfo {
} }
} }
if (process.env.CHANNEL !== 'stable'){
console.info("PageInfo loaded!");
}
export default PageInfo; export default PageInfo;

View File

@ -10,7 +10,7 @@ import Logger from './lib/Logger';
if(process.env.CHANNEL !== 'stable'){ if(process.env.CHANNEL !== 'stable'){
console.warm("\n\n\n\n\n\n ——— Sᴛλʀᴛɪɴɢ Uʟᴛʀᴀɪɪʏ ———\n << ʟᴏᴀᴅɪɴɢ ᴍᴀɪɴ ꜰɪʟᴇ >>\n\n\n\n"); console.warn("\n\n\n\n\n\n ——— Sᴛλʀᴛɪɴɢ Uʟᴛʀᴀɪɪʏ ———\n << ʟᴏᴀᴅɪɴɢ ᴍᴀɪɴ ꜰɪʟᴇ >>\n\n\n\n");
try { try {
if(window.self !== window.top){ if(window.self !== window.top){
console.info("%cWe aren't in an iframe.", "color: #afc, background: #174"); console.info("%cWe aren't in an iframe.", "color: #afc, background: #174");