Promoting a few logs to Info (#921)

* Promoting a few logs to Info

Also, adding a couple of more info logs which I will remove later
after some debugging.

* mime type

* Protect pause/max layer

* notify even if not bound
This commit is contained in:
Raja Subramanian
2022-08-16 13:03:14 +05:30
committed by GitHub
parent 1d199d1efa
commit d9fdcf8c2b
6 changed files with 27 additions and 10 deletions
+7 -1
View File
@@ -174,6 +174,12 @@ func (d *DynacastManager) updateMaxQualityForMime(mime string, maxQuality liveki
func (d *DynacastManager) update(force bool) {
d.lock.Lock()
d.params.Logger.Infow("processing quality change",
"force", force,
"committedMaxSubscribedQuality", d.committedMaxSubscribedQuality,
"maxSubscribedQuality", d.maxSubscribedQuality,
)
if len(d.maxSubscribedQuality) == 0 {
// no mime has been added, nothing to update
d.lock.Unlock()
@@ -204,7 +210,7 @@ func (d *DynacastManager) update(force bool) {
}
if downgradesOnly {
d.params.Logger.Debugw("debouncing quality downgrade",
d.params.Logger.Infow("debouncing quality downgrade",
"committedMaxSubscribedQuality", d.committedMaxSubscribedQuality,
"maxSubscribedQuality", d.maxSubscribedQuality,
)