Skip to content

Comments

fix(rtc-sender): downgrade track processing error logs to debug level#130

Open
hanguyen-nuro wants to merge 1 commit intomasterfrom
fix/reduce-error-log-noise
Open

fix(rtc-sender): downgrade track processing error logs to debug level#130
hanguyen-nuro wants to merge 1 commit intomasterfrom
fix/reduce-error-log-noise

Conversation

@hanguyen-nuro
Copy link
Contributor

Change all track processing error logs from Error to Debug level in processEncodedFrames to prevent syslog overload. These errors (including ErrNoFrameAvailable and others) occur frequently during normal operation and are not actionable at Error level.

Change all track processing error logs from Error to Debug level
in processEncodedFrames to prevent syslog overload. These errors
(including ErrNoFrameAvailable and others) occur frequently during
normal operation and are not actionable at Error level.
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 33.33%. Comparing base (709ca8f) to head (3edb639).

Files with missing lines Patch % Lines
sender/rtc_sender.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #130   +/-   ##
=======================================
  Coverage   33.33%   33.33%           
=======================================
  Files          18       18           
  Lines        1545     1545           
=======================================
  Hits          515      515           
  Misses        984      984           
  Partials       46       46           
Flag Coverage Δ
go 33.33% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines -514 to 518
// ErrNoFrameAvailable is expected during normal operation (timing gaps between frames)
// Log it at Debug level to reduce noise; other errors remain at Error level
// Log all track processing errors at Debug level to avoid overloading syslog
if errors.Is(result.error, ErrNoFrameAvailable) {
s.log.Debugf("No frame available for track %s", result.trackID)
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should just have one line like:
s.log.Debugf("Error processing track %s: %v", result.trackID, result.error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants