don't read from settings for now, as it is async

This commit is contained in:
Bruno Windels 2021-02-12 18:55:37 +01:00
parent 1183305d71
commit 07f8500d29

View File

@ -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) {