You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Use prefixed loggers for MatrixRTC (#4378)
This commit is contained in:
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { logger } from "../logger";
|
import { logger as rootLogger } from "../logger";
|
||||||
import { TypedEventEmitter } from "../models/typed-event-emitter";
|
import { TypedEventEmitter } from "../models/typed-event-emitter";
|
||||||
import { EventTimeline } from "../models/event-timeline";
|
import { EventTimeline } from "../models/event-timeline";
|
||||||
import { Room } from "../models/room";
|
import { Room } from "../models/room";
|
||||||
@@ -39,6 +39,8 @@ import { MatrixEvent } from "../models/event";
|
|||||||
import { isLivekitFocusActive } from "./LivekitFocus";
|
import { isLivekitFocusActive } from "./LivekitFocus";
|
||||||
import { ExperimentalGroupCallRoomMemberState } from "../webrtc/groupCall";
|
import { ExperimentalGroupCallRoomMemberState } from "../webrtc/groupCall";
|
||||||
|
|
||||||
|
const logger = rootLogger.getChild("MatrixRTCSession");
|
||||||
|
|
||||||
const MEMBERSHIP_EXPIRY_TIME = 60 * 60 * 1000;
|
const MEMBERSHIP_EXPIRY_TIME = 60 * 60 * 1000;
|
||||||
const MEMBER_EVENT_CHECK_PERIOD = 2 * 60 * 1000; // How often we check to see if we need to re-send our member event
|
const MEMBER_EVENT_CHECK_PERIOD = 2 * 60 * 1000; // How often we check to see if we need to re-send our member event
|
||||||
const CALL_MEMBER_EVENT_RETRY_DELAY_MIN = 3000;
|
const CALL_MEMBER_EVENT_RETRY_DELAY_MIN = 3000;
|
||||||
|
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { logger } from "../logger";
|
import { logger as rootLogger } from "../logger";
|
||||||
import { MatrixClient, ClientEvent } from "../client";
|
import { MatrixClient, ClientEvent } from "../client";
|
||||||
import { TypedEventEmitter } from "../models/typed-event-emitter";
|
import { TypedEventEmitter } from "../models/typed-event-emitter";
|
||||||
import { Room, RoomEvent } from "../models/room";
|
import { Room, RoomEvent } from "../models/room";
|
||||||
@@ -23,6 +23,8 @@ import { MatrixEvent } from "../models/event";
|
|||||||
import { MatrixRTCSession } from "./MatrixRTCSession";
|
import { MatrixRTCSession } from "./MatrixRTCSession";
|
||||||
import { EventType } from "../@types/event";
|
import { EventType } from "../@types/event";
|
||||||
|
|
||||||
|
const logger = rootLogger.getChild("MatrixRTCSessionManager");
|
||||||
|
|
||||||
export enum MatrixRTCSessionManagerEvents {
|
export enum MatrixRTCSessionManagerEvents {
|
||||||
// A member has joined the MatrixRTC session, creating an active session in a room where there wasn't previously
|
// A member has joined the MatrixRTC session, creating an active session in a room where there wasn't previously
|
||||||
SessionStarted = "session_started",
|
SessionStarted = "session_started",
|
||||||
|
Reference in New Issue
Block a user