Capture livekit's logs in rageshakes

This commit is contained in:
David Baker
2023-09-21 16:50:31 +01:00
parent c62a9be2e9
commit 9c878eab80
2 changed files with 7 additions and 3 deletions

View File

@@ -44,8 +44,6 @@ export type E2EEConfig = {
sharedKey: string;
};
setLogLevel("debug");
interface UseLivekitResult {
livekitRoom?: Room;
connState: ECConnectionState;

View File

@@ -23,13 +23,19 @@ import "matrix-js-sdk/src/browser-index";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { createBrowserHistory } from "history";
import "./index.css";
import { setLogLevel as setLKLogLevel } from "livekit-client";
import App from "./App";
import { init as initRageshake } from "./settings/rageshake";
import { Initializer } from "./initializer";
initRageshake();
// set livekit's log level: we do this after initialising rageshakes because
// we need rageshake to do its monkey patching first, so the livekit
// logger gets the patched log funxction, so it picks up livekit's
// logs.
setLKLogLevel("debug");
console.info(`Element Call ${import.meta.env.VITE_APP_VERSION || "dev"}`);