Skip to content

Commit 0bcbb11

Browse files
authored
Rename pID to participantID in log context (#1842)
1 parent fca3cc6 commit 0bcbb11

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

.changeset/polite-bees-hang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"livekit-client": minor
3+
---
4+
5+
Rename pID to participantID in log context

src/room/RTCEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
257257
room: this.latestJoinResponse?.room?.name,
258258
roomID: this.latestJoinResponse?.room?.sid,
259259
participant: this.latestJoinResponse?.participant?.identity,
260-
pID: this.participantSid,
260+
participantID: this.participantSid,
261261
};
262262
}
263263

src/room/Room.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
406406
room: this.name,
407407
roomID: this.roomInfo?.sid,
408408
participant: this.localParticipant.identity,
409-
pID: this.localParticipant.sid,
409+
participantID: this.localParticipant.sid,
410410
};
411411
}
412412

@@ -1481,7 +1481,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
14811481
if (!trackId.startsWith('TR')) {
14821482
this.log.warn(
14831483
`Tried to add a track whose 'sid' could not be determined for a participant, that's not present. Sid: ${participantSid}, streamId: ${streamId}, trackId: ${trackId}`,
1484-
{ ...this.logContext, rpID: participantSid, streamId, trackId },
1484+
{ ...this.logContext, remoteParticipantID: participantSid, streamId, trackId },
14851485
);
14861486
}
14871487

src/room/participant/RemoteParticipant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class RemoteParticipant extends Participant {
5454
protected get logContext() {
5555
return {
5656
...super.logContext,
57-
rpID: this.sid,
57+
remoteParticipantID: this.sid,
5858
remoteParticipant: this.identity,
5959
};
6060
}

0 commit comments

Comments
 (0)