Skip to content

worker: relax log severity for legitimate situations#1771

Closed
jmillan wants to merge 2 commits intov3from
logging
Closed

worker: relax log severity for legitimate situations#1771
jmillan wants to merge 2 commits intov3from
logging

Conversation

@jmillan
Copy link
Copy Markdown
Member

@jmillan jmillan commented Apr 8, 2026

Do not use warn for legitimate situations.

Copy link
Copy Markdown
Member

@ibc ibc left a comment

Choose a reason for hiding this comment

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

Those are indeed legitimate situations that shouldn't happen if everything is good. Yes, sometimes the RTP reaches mediasoup before the Producer is created and those warnings show up, but that's ok. If we followed the rationale of this PR in the whole code then everything should be "debug" severity but a few catastrophic errors/aborts.

@jmillan
Copy link
Copy Markdown
Member Author

jmillan commented Apr 8, 2026

Those are indeed legitimate situations that shouldn't happen if everything is good. Yes, sometimes the RTP reaches mediasoup before the Producer is created and those warnings show up, but that's ok. If we followed the rationale of this PR in the whole code then everything should be "debug" severity but a few catastrophic errors/aborts.

The client may start sending RTP before producer is ready in server side, for example. Or producer may be removed from server side before doing so in client side. Those normal situations (normal because there is always a signaling delay between client and server) generate lots of warnings which is OK in dev environments but simply unusable in big production environments where one must filter those messages in a post process pipeline otherwise.

I'm fine closing this PR. One can always temporarily enable 'warn' log level and filter at another place.

@jmillan jmillan closed this Apr 8, 2026
@ibc
Copy link
Copy Markdown
Member

ibc commented Apr 8, 2026

If the client sends RTP packets with wrong PT or SSRC etc that don't match the given RTP parameters (due to bad setup), we want to see warnings, right?

@jmillan
Copy link
Copy Markdown
Member Author

jmillan commented Apr 8, 2026

If the client sends RTP packets with wrong PT or SSRC etc that don't match the given RTP parameters (due to bad setup), we want to see warnings, right?

Depending on what kind of error you are looking for. If you have a specific problem to troubleshoot you may not want to see those, which may be very well generated for every RTP producer (depending on how many producers we are talking about these may be a lot of logs).

So in summary we cannot make assumptions on what to filter on the library side. The app/service needs to filter as it needs.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants