mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 11:36:24 +01:00
don't read from settings for now, as it is async
This commit is contained in:
parent
1183305d71
commit
07f8500d29
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user