mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
Merge pull request #4257 from element-hq/matthew/log-livekit-ice
Always log LiveKit ICE candidates and states to the rageshake
This commit is contained in:
@@ -25,6 +25,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
setLogExtension as setLKLogExtension,
|
setLogExtension as setLKLogExtension,
|
||||||
setLogLevel as setLKLogLevel,
|
setLogLevel as setLKLogLevel,
|
||||||
|
LoggerNames as LKLoggerNames,
|
||||||
} from "livekit-client";
|
} from "livekit-client";
|
||||||
|
|
||||||
import { getUrlParams } from "./UrlParams";
|
import { getUrlParams } from "./UrlParams";
|
||||||
@@ -226,6 +227,9 @@ export class Initializer {
|
|||||||
|
|
||||||
enableExtendedLivekitLogs.value$.subscribe((enabled) => {
|
enableExtendedLivekitLogs.value$.subscribe((enabled) => {
|
||||||
setLKLogLevel(enabled ? "trace" : "info");
|
setLKLogLevel(enabled ? "trace" : "info");
|
||||||
|
// ICE candidate types and connection states are what you need to diagnose
|
||||||
|
// "could not establish pc connection", so always keep those in the rageshake
|
||||||
|
setLKLogLevel("debug", LKLoggerNames.ICE);
|
||||||
});
|
});
|
||||||
|
|
||||||
window.setLKLogLevel = setLKLogLevel;
|
window.setLKLogLevel = setLKLogLevel;
|
||||||
|
|||||||
Reference in New Issue
Block a user