Merge pull request #1272 from vector-im/dbkr/debug_logs

Enable debug logging
This commit is contained in:
David Baker 2023-07-19 14:04:58 +01:00 committed by GitHub
commit a311c6ea3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
import { Room, RoomOptions } from "livekit-client";
import { Room, RoomOptions, setLogLevel } from "livekit-client";
import { useLiveKitRoom } from "@livekit/components-react";
import { useMemo } from "react";
@ -15,6 +15,8 @@ export type DeviceChoices = {
enabled: boolean;
};
setLogLevel("debug");
export function useLiveKit(
userChoices: UserChoices,
sfuConfig?: SFUConfig