Demote more logs to debug (#1998)

This commit is contained in:
David Zhao
2023-08-27 19:17:38 -07:00
committed by GitHub
parent 73b87f04df
commit eed8e85008
6 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -836,7 +836,7 @@ func (p *ParticipantImpl) SetMigrateState(s types.MigrateState) {
return
}
p.params.Logger.Infow("SetMigrateState", "state", s)
p.params.Logger.Debugw("SetMigrateState", "state", s)
p.migrateState.Store(s)
p.dirty.Store(true)
@@ -1536,7 +1536,7 @@ func (p *ParticipantImpl) onSubscribedMaxQualityChange(trackID livekit.TrackID,
)
}
p.pubLogger.Infow(
p.pubLogger.Debugw(
"sending max subscribed quality",
"trackID", trackID,
"qualities", subscribedQualities,
+2 -1
View File
@@ -1330,7 +1330,8 @@ func BroadcastDataPacketForRoom(r types.Room, source types.LocalParticipant, dp
utils.ParallelExec(destParticipants, dataForwardLoadBalanceThreshold, 1, func(op types.LocalParticipant) {
err := op.SendDataPacket(dp, dpData)
if err != nil && !errors.Is(err, io.ErrClosedPipe) && !errors.Is(err, psrpc.Canceled) {
if err != nil && !errors.Is(err, io.ErrClosedPipe) && !errors.Is(err, psrpc.Canceled) &&
errors.Is(err, psrpc.ErrStreamClosed) {
op.GetLogger().Infow("send data packet error", "error", err)
}
})
+1 -1
View File
@@ -371,7 +371,7 @@ func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
websocket.CloseNormalClosure,
websocket.CloseNoStatusReceived,
) {
pLogger.Infow("exit ws read loop for closed connection", "connID", cr.ConnectionID, "wsError", err)
pLogger.Debugw("exit ws read loop for closed connection", "connID", cr.ConnectionID, "wsError", err)
} else {
pLogger.Errorw("error reading from websocket", err, "connID", cr.ConnectionID)
}
+1 -1
View File
@@ -838,7 +838,7 @@ func (r *RTPStats) maybeAdjustFirstPacketTime(ets uint64) {
"extStartTS", r.timestamp.GetExtendedStart(),
)
if r.firstTime.Sub(firstTime) > firstPacketTimeAdjustThreshold {
r.logger.Infow("first packet time adjustment too big, ignoring",
r.logger.Debugw("first packet time adjustment too big, ignoring",
"startTime", r.startTime.String(),
"nowTime", now.String(),
"before", r.firstTime.String(),
+1 -1
View File
@@ -154,7 +154,7 @@ func (p *ProbeController) MaybeFinalizeProbe(
queueWait = p.params.Config.SettleWaitMax
}
p.probeEndTime = p.lastProbeStartTime.Add(queueWait + p.doneProbeClusterInfo.Duration)
p.params.Logger.Infow(
p.params.Logger.Debugw(
"setting probe end time",
"probeClusterId", p.probeClusterId,
"expectedDuration", expectedDuration,
+1 -1
View File
@@ -991,7 +991,7 @@ func (s *StreamAllocator) onProbeDone(isNotFailing bool, isGoalReached bool) {
//
channelObserverString := s.channelObserver.ToString()
s.channelObserver = s.newChannelObserverNonProbe()
s.params.Logger.Infow(
s.params.Logger.Debugw(
"probe done",
"isNotFailing", isNotFailing,
"isGoalReached", isGoalReached,