From 691f45fbcc0ef967eb9df8a6bae0f5abe7a6f7cf Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 27 Jan 2020 23:42:35 +0100 Subject: [PATCH] remove log to console --- src/ext/uw-bg.js | 2 -- src/ext/uw.js | 2 -- src/options/App.vue | 2 -- src/popup/App.vue | 2 -- src/popup/panels/AboutPanel.vue | 4 ---- 5 files changed, 12 deletions(-) diff --git a/src/ext/uw-bg.js b/src/ext/uw-bg.js index 7e0ab7f..7564680 100644 --- a/src/ext/uw-bg.js +++ b/src/ext/uw-bg.js @@ -33,8 +33,6 @@ class UWServer { // logger is the first thing that goes up const loggingOptions = { allowLogging: true, - logToFile: false, - logToConsole: true, logAll: true, }; this.logger = new Logger(); diff --git a/src/ext/uw.js b/src/ext/uw.js index ab1019e..26336cd 100644 --- a/src/ext/uw.js +++ b/src/ext/uw.js @@ -44,8 +44,6 @@ class UW { if (!this.logger) { const loggingOptions = { allowLogging: true, - logToFile: false, - logToConsole: false, fileOptions: { enabled: false, // really the same stuff as consoleOptions diff --git a/src/options/App.vue b/src/options/App.vue index 98230ee..be1c7c0 100644 --- a/src/options/App.vue +++ b/src/options/App.vue @@ -147,8 +147,6 @@ export default { async created () { this.logger = new Logger({ allowLogging: true, - logToFile: false, - logToConsole: false }); await this.logger.init(); diff --git a/src/popup/App.vue b/src/popup/App.vue index 0f90811..4edabee 100644 --- a/src/popup/App.vue +++ b/src/popup/App.vue @@ -207,8 +207,6 @@ export default { async created() { this.logger = new Logger({ allowLogging: true, - logToFile: false, - logToConsole: false }); await this.logger.init(); diff --git a/src/popup/panels/AboutPanel.vue b/src/popup/panels/AboutPanel.vue index a0d2640..732a4aa 100644 --- a/src/popup/panels/AboutPanel.vue +++ b/src/popup/panels/AboutPanel.vue @@ -102,8 +102,6 @@ Browser-related stuff (please ensure this section is correct): loadLoggerSettings(conf) { this.loggingEnabled = conf.allowLogging; this.lastLoadedLoggerSettings = { - logToFile: conf.logToFile, - logToConsole: conf.logToConsole, fileOptions: conf.fileOptions, consoleOptions: conf.consoleOptions }; @@ -115,8 +113,6 @@ Browser-related stuff (please ensure this section is correct): const parsedSettings = JSON.parse(this.loggerSettings); Logger.saveConfig({ allowLogging: allowLogging, - logToFile: parsedSettings.logToFile || false, - logToConsole: parsedSettings.logToConsole || false, fileOptions: parsedSettings.fileOptions || {}, consoleOptions: parsedSettings.consoleOptions || {}, });