@@ -22,11 +22,11 @@ patch(RtcSession.prototype, {
2222
2323patch ( PeerToPeer . prototype , {
2424 async handleNotification ( ) {
25- console . log ( "message intercepted" ) ;
25+ console . debug ( "message intercepted" ) ;
2626 } ,
2727
2828 _dataChannelupdateInBroadcast ( ) {
29- console . log ( "message intercepted" ) ;
29+ console . debug ( "message intercepted" ) ;
3030 } ,
3131} ) ;
3232
@@ -75,7 +75,7 @@ patch(Rtc.prototype, {
7575 ) ;
7676 }
7777 if (
78- eventdata . detail . name === "info_change" &&
78+ eventdata . detail . name == "info_change" &&
7979 Object . keys ( eventdata . detail . payload ) [ 0 ] . includes ( ":" )
8080 ) {
8181 const fixedIdentity = this . identityToSessionId (
@@ -89,7 +89,7 @@ patch(Rtc.prototype, {
8989 } ,
9090
9191 async _handleNetworkUpdates ( eventdata ) {
92- console . log ( "LIVEKIT: Network update received" , eventdata ) ;
92+ console . debug ( "LIVEKIT: Network update received" , eventdata ) ;
9393 this . fixEventIds ( eventdata ) ;
9494 return super . _handleNetworkUpdates ( eventdata ) ;
9595 } ,
@@ -107,7 +107,7 @@ patch(Rtc.prototype, {
107107 } ,
108108
109109 async handleSetAudioVolume ( eventdata ) {
110- console . log ( "LIVEKIT: Set audio volume event received" , eventdata ) ;
110+ console . debug ( "LIVEKIT: Set audio volume event received" , eventdata ) ;
111111 this . fixEventIds ( eventdata ) ;
112112 return this . setAudioVolume (
113113 eventdata . detail . payload . sessionId ,
@@ -116,13 +116,13 @@ patch(Rtc.prototype, {
116116 } ,
117117
118118 async handleTrackSubscribed ( eventdata ) {
119- console . log ( "LIVEKIT: Track subscribed event received" , eventdata ) ;
119+ console . debug ( "LIVEKIT: Track subscribed event received" , eventdata ) ;
120120 this . fixEventIds ( eventdata ) ;
121121 if ( eventdata . detail . name === "trackSubscribed" ) {
122122 const { identity, type, track} = eventdata . detail . payload ;
123123 const sessionId = this . identityToSessionId ( identity ) ;
124124
125- console . log (
125+ console . debug (
126126 `Track subscribed for session ${ sessionId } , type ${ type } . Triggering rebind.`
127127 ) ;
128128
@@ -164,7 +164,7 @@ patch(Rtc.prototype, {
164164 } ,
165165
166166 async updateUpload ( ) {
167- console . log ( "Updating uploads for tracks..." ) ;
167+ console . debug ( "Updating uploads for tracks..." ) ;
168168 await this . network ?. updateUpload ( Source . MICROPHONE , this . state . audioTrack ) ;
169169 await this . network ?. updateUpload (
170170 Source . CAMERA ,
@@ -189,7 +189,7 @@ patch(Rtc.prototype, {
189189 return ;
190190 }
191191 try {
192- console . log ( "Connecting to LiveKit server..." ) ;
192+ console . debug ( "Connecting to LiveKit server..." ) ;
193193 await this . network . connect (
194194 this . selfSession . livekit_url ,
195195 this . selfSession . livekit_token
0 commit comments