Logging some connection quality stuff to get some data. (#1008)
* Logging some connection quality stuff to get some data. Setting it at 4.5 as normalised scores are higher. * log average score
This commit is contained in:
@@ -873,6 +873,15 @@ func (p *ParticipantImpl) GetConnectionQuality() *livekit.ConnectionQualityInfo
|
||||
avgScore = totalScore / float32(numTracks)
|
||||
}
|
||||
|
||||
if avgScore < 4.5 {
|
||||
p.params.Logger.Infow(
|
||||
"low connection quality score",
|
||||
"avgScore", avgScore,
|
||||
"publisherScores", publisherScores,
|
||||
"subscriberScores", subscriberScores,
|
||||
)
|
||||
}
|
||||
|
||||
rating := connectionquality.Score2Rating(avgScore)
|
||||
|
||||
return &livekit.ConnectionQualityInfo{
|
||||
|
||||
Reference in New Issue
Block a user