From 4c2abcf9c713951c7b3e0f613c092c908abcb1ed Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 12 Feb 2021 13:04:18 +0100 Subject: [PATCH] add logger to platform --- src/platform/web/Platform.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/web/Platform.js b/src/platform/web/Platform.js index d2e532af..73dca9c2 100644 --- a/src/platform/web/Platform.js +++ b/src/platform/web/Platform.js @@ -21,6 +21,7 @@ import {SessionInfoStorage} from "../../matrix/sessioninfo/localstorage/SessionI import {SettingsStorage} from "./dom/SettingsStorage.js"; import {UTF8} from "./dom/UTF8.js"; import {OlmWorker} from "../../matrix/e2ee/OlmWorker.js"; +import {IDBLogger} from "../../logs/IDBLogger.js"; import {RootView} from "./ui/RootView.js"; import {Clock} from "./dom/Clock.js"; import {ServiceWorkerHandler} from "./dom/ServiceWorkerHandler.js"; @@ -85,6 +86,7 @@ export class Platform { this._paths = paths; this._container = container; this.utf8 = new UTF8(); + this.logger = new IDBLogger("hydrogen_logs", this); this.clock = new Clock(); this.history = new History(); this.onlineStatus = new OnlineStatus();