start with a couple of more logs
This commit is contained in:
@@ -131,6 +131,7 @@ export function useLivekit(
|
|||||||
// @livekit/components-react. JSON.stringify() is used in deps of a
|
// @livekit/components-react. JSON.stringify() is used in deps of a
|
||||||
// useEffect() with an argument that references itself, if E2EE is enabled
|
// useEffect() with an argument that references itself, if E2EE is enabled
|
||||||
const room = useMemo(() => {
|
const room = useMemo(() => {
|
||||||
|
logger.info("[LivekitRooms] Create LiveKit room with options", roomOptions);
|
||||||
const r = new Room(roomOptions);
|
const r = new Room(roomOptions);
|
||||||
r.setE2EEEnabled(e2eeSystem.kind !== E2eeType.NONE).catch((e) => {
|
r.setE2EEEnabled(e2eeSystem.kind !== E2eeType.NONE).catch((e) => {
|
||||||
logger.error("Failed to set E2EE enabled on room", e);
|
logger.error("Failed to set E2EE enabled on room", e);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ window.setLKLogLevel = setLKLogLevel;
|
|||||||
initRageshake().catch((e) => {
|
initRageshake().catch((e) => {
|
||||||
logger.error("Failed to initialize rageshake", e);
|
logger.error("Failed to initialize rageshake", e);
|
||||||
});
|
});
|
||||||
setLKLogLevel("warn");
|
setLKLogLevel("info");
|
||||||
setLKLogExtension((level, msg, context) => {
|
setLKLogExtension((level, msg, context) => {
|
||||||
// we pass a synthetic logger name of "livekit" to the rageshake to make it easier to read
|
// we pass a synthetic logger name of "livekit" to the rageshake to make it easier to read
|
||||||
global.mx_rage_logger.log(level, "livekit", msg, context);
|
global.mx_rage_logger.log(level, "livekit", msg, context);
|
||||||
|
|||||||
Reference in New Issue
Block a user