Skip to content

Commit

Permalink
clean clienttrack log
Browse files Browse the repository at this point in the history
  • Loading branch information
tyohan committed Sep 19, 2024
1 parent a9c1fc2 commit ee7429c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clienttrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package sfu

import (
"context"
"errors"
"sync"

"github.com/inlivedev/sfu/pkg/packetmap"
Expand Down Expand Up @@ -104,7 +105,7 @@ func (t *clientTrack) ReceiveBitrate() uint32 {

func (t *clientTrack) SendBitrate() uint32 {
bitrate, err := t.client.stats.GetSenderBitrate(t.ID())
if err != nil {
if err != nil && !errors.Is(err, ErrCLientStatsNotFound) {
t.client.log.Errorf("clienttrack: error on get sender bitrate %s", err.Error())
return 0
}
Expand Down Expand Up @@ -234,7 +235,7 @@ func (t *clientTrack) getQuality() QualityLevel {
claim := t.client.bitrateController.GetClaim(t.ID())

if claim == nil {
t.client.log.Warnf("scalabletrack: claim is nil")
t.client.log.Warnf("clienttrack: claim is nil")
return QualityNone
}

Expand Down

0 comments on commit ee7429c

Please sign in to comment.