remove log to console
This commit is contained in:
parent
c62033fb28
commit
691f45fbcc
@ -33,8 +33,6 @@ class UWServer {
|
|||||||
// logger is the first thing that goes up
|
// logger is the first thing that goes up
|
||||||
const loggingOptions = {
|
const loggingOptions = {
|
||||||
allowLogging: true,
|
allowLogging: true,
|
||||||
logToFile: false,
|
|
||||||
logToConsole: true,
|
|
||||||
logAll: true,
|
logAll: true,
|
||||||
};
|
};
|
||||||
this.logger = new Logger();
|
this.logger = new Logger();
|
||||||
|
@ -44,8 +44,6 @@ class UW {
|
|||||||
if (!this.logger) {
|
if (!this.logger) {
|
||||||
const loggingOptions = {
|
const loggingOptions = {
|
||||||
allowLogging: true,
|
allowLogging: true,
|
||||||
logToFile: false,
|
|
||||||
logToConsole: false,
|
|
||||||
fileOptions: {
|
fileOptions: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
// really the same stuff as consoleOptions
|
// really the same stuff as consoleOptions
|
||||||
|
@ -147,8 +147,6 @@ export default {
|
|||||||
async created () {
|
async created () {
|
||||||
this.logger = new Logger({
|
this.logger = new Logger({
|
||||||
allowLogging: true,
|
allowLogging: true,
|
||||||
logToFile: false,
|
|
||||||
logToConsole: false
|
|
||||||
});
|
});
|
||||||
await this.logger.init();
|
await this.logger.init();
|
||||||
|
|
||||||
|
@ -207,8 +207,6 @@ export default {
|
|||||||
async created() {
|
async created() {
|
||||||
this.logger = new Logger({
|
this.logger = new Logger({
|
||||||
allowLogging: true,
|
allowLogging: true,
|
||||||
logToFile: false,
|
|
||||||
logToConsole: false
|
|
||||||
});
|
});
|
||||||
await this.logger.init();
|
await this.logger.init();
|
||||||
|
|
||||||
|
@ -102,8 +102,6 @@ Browser-related stuff (please ensure this section is correct):
|
|||||||
loadLoggerSettings(conf) {
|
loadLoggerSettings(conf) {
|
||||||
this.loggingEnabled = conf.allowLogging;
|
this.loggingEnabled = conf.allowLogging;
|
||||||
this.lastLoadedLoggerSettings = {
|
this.lastLoadedLoggerSettings = {
|
||||||
logToFile: conf.logToFile,
|
|
||||||
logToConsole: conf.logToConsole,
|
|
||||||
fileOptions: conf.fileOptions,
|
fileOptions: conf.fileOptions,
|
||||||
consoleOptions: conf.consoleOptions
|
consoleOptions: conf.consoleOptions
|
||||||
};
|
};
|
||||||
@ -115,8 +113,6 @@ Browser-related stuff (please ensure this section is correct):
|
|||||||
const parsedSettings = JSON.parse(this.loggerSettings);
|
const parsedSettings = JSON.parse(this.loggerSettings);
|
||||||
Logger.saveConfig({
|
Logger.saveConfig({
|
||||||
allowLogging: allowLogging,
|
allowLogging: allowLogging,
|
||||||
logToFile: parsedSettings.logToFile || false,
|
|
||||||
logToConsole: parsedSettings.logToConsole || false,
|
|
||||||
fileOptions: parsedSettings.fileOptions || {},
|
fileOptions: parsedSettings.fileOptions || {},
|
||||||
consoleOptions: parsedSettings.consoleOptions || {},
|
consoleOptions: parsedSettings.consoleOptions || {},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user