Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
845b4e133b | ||
|
|
b0f63eb2ff |
@@ -20,6 +20,7 @@ import {
|
|||||||
ExternalE2EEKeyProvider,
|
ExternalE2EEKeyProvider,
|
||||||
Room,
|
Room,
|
||||||
RoomOptions,
|
RoomOptions,
|
||||||
|
setLogLevel,
|
||||||
} from "livekit-client";
|
} from "livekit-client";
|
||||||
import { useLiveKitRoom } from "@livekit/components-react";
|
import { useLiveKitRoom } from "@livekit/components-react";
|
||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
@@ -43,6 +44,8 @@ export type E2EEConfig = {
|
|||||||
sharedKey: string;
|
sharedKey: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
setLogLevel("debug");
|
||||||
|
|
||||||
interface UseLivekitResult {
|
interface UseLivekitResult {
|
||||||
livekitRoom?: Room;
|
livekitRoom?: Room;
|
||||||
connState: ECConnectionState;
|
connState: ECConnectionState;
|
||||||
|
|||||||
@@ -23,19 +23,13 @@ import "matrix-js-sdk/src/browser-index";
|
|||||||
import { StrictMode } from "react";
|
import { StrictMode } from "react";
|
||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
import { createBrowserHistory } from "history";
|
import { createBrowserHistory } from "history";
|
||||||
import "./index.css";
|
|
||||||
import { setLogLevel as setLKLogLevel } from "livekit-client";
|
|
||||||
|
|
||||||
|
import "./index.css";
|
||||||
import App from "./App";
|
import App from "./App";
|
||||||
import { init as initRageshake } from "./settings/rageshake";
|
import { init as initRageshake } from "./settings/rageshake";
|
||||||
import { Initializer } from "./initializer";
|
import { Initializer } from "./initializer";
|
||||||
|
|
||||||
initRageshake();
|
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"}`);
|
console.info(`Element Call ${import.meta.env.VITE_APP_VERSION || "dev"}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user