mirror of
https://github.com/livekit/livekit.git
synced 2026-04-01 04:25:39 +00:00
Include clientInfo in connectivity logs. (#3638)
Makes it easier for log based filtering.
This commit is contained in:
@@ -474,7 +474,11 @@ func (r *Room) Join(participant types.LocalParticipant, requestSource routing.Me
|
||||
false,
|
||||
)
|
||||
|
||||
p.GetLogger().Infow("participant active", connectionDetailsFields(infos)...)
|
||||
fields := append(
|
||||
connectionDetailsFields(infos),
|
||||
"clientInfo", logger.Proto(p.GetClientInfo()),
|
||||
)
|
||||
p.GetLogger().Infow("participant active", fields...)
|
||||
} else if state == livekit.ParticipantInfo_DISCONNECTED {
|
||||
// remove participant from room
|
||||
// participant should already be closed and have a close reason, so NONE is fine here
|
||||
@@ -706,8 +710,10 @@ func (r *Room) RemoveParticipant(identity livekit.ParticipantIdentity, pID livek
|
||||
r.protoProxy.MarkDirty(immediateChange)
|
||||
|
||||
if !p.HasConnected() {
|
||||
fields := append(connectionDetailsFields(p.GetICEConnectionInfo()),
|
||||
fields := append(
|
||||
connectionDetailsFields(p.GetICEConnectionInfo()),
|
||||
"reason", reason.String(),
|
||||
"clientInfo", logger.Proto(p.GetClientInfo()),
|
||||
)
|
||||
p.GetLogger().Infow("removing participant without connection", fields...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user