From 07f8500d29b2f7f71f5848cfb5513a7cf6536692 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 12 Feb 2021 18:55:37 +0100 Subject: [PATCH] don't read from settings for now, as it is async --- src/logging/BaseLogger.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/logging/BaseLogger.js b/src/logging/BaseLogger.js index 82524167..aa55468a 100644 --- a/src/logging/BaseLogger.js +++ b/src/logging/BaseLogger.js @@ -18,11 +18,13 @@ import {LogItem} from "./LogItem.js"; import {LogLevel} from "./LogLevel.js"; export class BaseLogger { - constructor({platform, baseLogLevel, anonymize}) { + constructor({platform}) { this._openItems = new Set(); this._platform = platform; - this._anonymize = anonymize; - this._baseLogLevel = baseLogLevel; + this._anonymize = false; //await platform.settingsStorage.getBool("anonymize", false); + this._baseLogLevel = LogLevel.Info; //await platform.settingsStorage.getInt("baseLogLevel", LogLevel.Info); + } + } run(labelOrValues, callback, logLevel = this._baseLogLevel) {