Rename log field "pID" to "participantID" for consistency (#4365)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
77fc74a727
commit
c8bb2578be
+1
-1
@@ -473,7 +473,7 @@ func (r *Room) Join(
|
||||
|
||||
r.logger.Debugw(
|
||||
"new participant joined",
|
||||
"pID", participant.ID(),
|
||||
"participantID", participant.ID(),
|
||||
"participant", participant.Identity(),
|
||||
"clientInfo", logger.Proto(participant.GetClientInfo()),
|
||||
"options", opts,
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ func LoggerWithParticipant(l logger.Logger, identity livekit.ParticipantIdentity
|
||||
values = append(values, "participant", identity)
|
||||
}
|
||||
if sid != "" {
|
||||
values = append(values, "pID", sid)
|
||||
values = append(values, "participantID", sid)
|
||||
}
|
||||
values = append(values, "remote", isRemote)
|
||||
// enable sampling per participant
|
||||
|
||||
@@ -308,7 +308,7 @@ func (s *RTCService) serve(w http.ResponseWriter, r *http.Request, needsJoinRequ
|
||||
"room", roomName,
|
||||
"roomID", roomID,
|
||||
"participant", participantIdentity,
|
||||
"pID", pID,
|
||||
"participantID", pID,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -358,7 +358,7 @@ func (s *WHIPService) iceTrickle(
|
||||
"method", "ice-trickle",
|
||||
"room", roomName,
|
||||
"participant", participantIdentity,
|
||||
"pID", pID,
|
||||
"participantID", pID,
|
||||
"sdpFragment", sdpFragment,
|
||||
"status", http.StatusNoContent,
|
||||
)
|
||||
@@ -410,7 +410,7 @@ func (s *WHIPService) iceRestart(
|
||||
"method", "ice-restart",
|
||||
"room", roomName,
|
||||
"participant", participantIdentity,
|
||||
"pID", pID,
|
||||
"participantID", pID,
|
||||
"sdpFragment", sdpFragment,
|
||||
"status", http.StatusNoContent,
|
||||
"res", logger.Proto(res),
|
||||
@@ -514,7 +514,7 @@ func (s *WHIPService) handleParticipantDelete(w http.ResponseWriter, r *http.Req
|
||||
sutils.GetLogger(r.Context()).Infow(
|
||||
"API WHIP.Delete",
|
||||
"participant", claims.Identity,
|
||||
"pID", r.PathValue("participant_id"),
|
||||
"participantID", r.PathValue("participant_id"),
|
||||
"room", roomName,
|
||||
"status", http.StatusOK,
|
||||
)
|
||||
|
||||
@@ -198,7 +198,7 @@ func (t *telemetryService) ParticipantLeft(ctx context.Context,
|
||||
"room", room.Name,
|
||||
"roomID", room.Sid,
|
||||
"participant", participant.Identity,
|
||||
"pID", participant.Sid,
|
||||
"participantID", participant.Sid,
|
||||
"worker", worker,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ func (s *StatsWorker) MarshalLogObject(e zapcore.ObjectEncoder) error {
|
||||
e.AddString("room", string(s.roomName))
|
||||
e.AddString("roomID", string(s.roomID))
|
||||
e.AddString("participant", string(s.participantIdentity))
|
||||
e.AddString("pID", string(s.participantID))
|
||||
e.AddString("participantID", string(s.participantID))
|
||||
e.AddBool("isConnected", s.isConnected)
|
||||
e.AddTime("closedAt", s.closedAt)
|
||||
e.AddObject("refCount", s.refCount)
|
||||
|
||||
Reference in New Issue
Block a user