Disable logging
This commit is contained in:
parent
7d63245136
commit
536e726f4b
@ -29,7 +29,9 @@ class Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
this.conf = await this.getSaved();
|
if (!this.conf) {
|
||||||
|
this.conf = await this.getSaved();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clear() {
|
clear() {
|
||||||
|
@ -31,7 +31,10 @@ class UWServer {
|
|||||||
|
|
||||||
async setup() {
|
async setup() {
|
||||||
// logger is the first thing that goes up
|
// logger is the first thing that goes up
|
||||||
this.logger = new Logger();
|
this.logger = new Logger({
|
||||||
|
logToFile: false,
|
||||||
|
logToConsole: false
|
||||||
|
});
|
||||||
await this.logger.init();
|
await this.logger.init();
|
||||||
|
|
||||||
this.settings = new Settings({logger: this.logger});
|
this.settings = new Settings({logger: this.logger});
|
||||||
|
@ -44,7 +44,7 @@ class UW {
|
|||||||
if (!this.logger) {
|
if (!this.logger) {
|
||||||
const loggingOptions = {
|
const loggingOptions = {
|
||||||
logToFile: false,
|
logToFile: false,
|
||||||
logToConsole: true,
|
logToConsole: false,
|
||||||
fileOptions: {
|
fileOptions: {
|
||||||
// really the same stuff as consoleOptions
|
// really the same stuff as consoleOptions
|
||||||
},
|
},
|
||||||
@ -52,14 +52,15 @@ class UW {
|
|||||||
enabled: true, // if logging is enabled at all
|
enabled: true, // if logging is enabled at all
|
||||||
'debug': true,
|
'debug': true,
|
||||||
'init': true,
|
'init': true,
|
||||||
|
'settings': true,
|
||||||
'keyboard': false,
|
'keyboard': false,
|
||||||
'mousemove': false,
|
'mousemove': false,
|
||||||
'actionHandler': false,
|
'actionHandler': false,
|
||||||
'comms': true,
|
'comms': false,
|
||||||
'playerDetect': true,
|
'playerDetect': false,
|
||||||
'resizer': true,
|
// 'resizer': true,
|
||||||
'scaler': true,
|
// 'scaler': true,
|
||||||
'stretcher': true,
|
// 'stretcher': true,
|
||||||
'videoRescan': false,
|
'videoRescan': false,
|
||||||
'arDetect': false,
|
'arDetect': false,
|
||||||
'arDetect_verbose': false,
|
'arDetect_verbose': false,
|
||||||
@ -86,7 +87,7 @@ class UW {
|
|||||||
|
|
||||||
if (!this.settings) {
|
if (!this.settings) {
|
||||||
var ths = this;
|
var ths = this;
|
||||||
this.settings = new Settings({updateCallback: () => ths.init(), logger: this.logger});
|
this.settings = new Settings({updateCallback: (s) => {console.log("settings callback — ", s); ths.init()}, logger: this.logger});
|
||||||
await this.settings.init();
|
await this.settings.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created () {
|
async created () {
|
||||||
this.logger = new Logger();
|
this.logger = new Logger({
|
||||||
|
logToFile: false,
|
||||||
|
logToConsole: false
|
||||||
|
});
|
||||||
await this.logger.init();
|
await this.logger.init();
|
||||||
|
|
||||||
this.settings = new Settings({updateCallback: this.updateSettings, logger: this.logger});
|
this.settings = new Settings({updateCallback: this.updateSettings, logger: this.logger});
|
||||||
|
@ -205,7 +205,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
this.logger = new Logger();
|
this.logger = new Logger({
|
||||||
|
logToFile: false,
|
||||||
|
logToConsole: false
|
||||||
|
});
|
||||||
await this.logger.init();
|
await this.logger.init();
|
||||||
|
|
||||||
this.settings = new Settings({updateCallback: () => this.updateConfig(), logger: this.logger});
|
this.settings = new Settings({updateCallback: () => this.updateConfig(), logger: this.logger});
|
||||||
|
Loading…
Reference in New Issue
Block a user