Merge pull request #1566 from vector-im/dbkr/lklogs
Capture livekit's logs in rageshakes
This commit is contained in:
@@ -20,7 +20,6 @@ import {
|
||||
ExternalE2EEKeyProvider,
|
||||
Room,
|
||||
RoomOptions,
|
||||
setLogLevel,
|
||||
} from "livekit-client";
|
||||
import { useLiveKitRoom } from "@livekit/components-react";
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
@@ -44,8 +43,6 @@ export type E2EEConfig = {
|
||||
sharedKey: string;
|
||||
};
|
||||
|
||||
setLogLevel("debug");
|
||||
|
||||
interface UseLivekitResult {
|
||||
livekitRoom?: Room;
|
||||
connState: ECConnectionState;
|
||||
|
||||
@@ -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"}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user