Some logging changes. (#4168)
* Some logging changes. Trying to chase a case of large sequence number gap on subscriber side where packets are sent after a long time. * return values instead of logging
This commit is contained in:
+15
-1
@@ -490,7 +490,12 @@ func (f *Forwarder) Mute(muted bool, isSubscribeMutable bool) bool {
|
||||
// It could result in some bandwidth consumed for stream without visibility in
|
||||
// the case of intentional mute.
|
||||
if muted && !isSubscribeMutable {
|
||||
f.logger.Debugw("ignoring forwarder mute, paused due to congestion")
|
||||
f.logger.Infow(
|
||||
"ignoring forwarder mute, paused due to congestion",
|
||||
"targetLayers", f.vls.GetTarget(),
|
||||
"currentLayers", f.vls.GetCurrent(),
|
||||
"lastAllocation", f.lastAllocation,
|
||||
)
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -2075,6 +2080,15 @@ func (f *Forwarder) getTranslationParamsVideo(extPkt *buffer.ExtPacket, layer in
|
||||
result := f.vls.Select(extPkt, layer)
|
||||
if !result.IsSelected {
|
||||
if f.isDDAvailable && extPkt.DependencyDescriptor == nil {
|
||||
f.logger.Infow(
|
||||
"turning off dependency descriptor",
|
||||
"layer", layer,
|
||||
"refInfos", logger.ObjectSlice(f.refInfos[:]),
|
||||
"lastSwitchExtIncomingTS", f.lastSwitchExtIncomingTS,
|
||||
"currentLayer", f.vls.GetCurrent(),
|
||||
"targetLayer", f.vls.GetCurrent(),
|
||||
"maxLayer", f.vls.GetMax(),
|
||||
)
|
||||
f.isDDAvailable = false
|
||||
switch f.mime {
|
||||
case mime.MimeTypeVP9:
|
||||
|
||||
Reference in New Issue
Block a user