Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: feat: [DIOS-6664] Add stream view id to relevant log messages #269

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

bcostdolby
Copy link
Contributor

@bcostdolby bcostdolby commented Aug 28, 2024

Needs the new logger repo logger-node
Needs the PR in media-server-src: medooze/media-server#325

package.json Outdated Show resolved Hide resolved
lib/Logger.js Outdated Show resolved Hide resolved
lib/PeerConnectionServer.js Outdated Show resolved Hide resolved
lib/SDPManagerPlanB.js Outdated Show resolved Hide resolved
lib/SDPManagerUnified.js Outdated Show resolved Hide resolved
lib/StreamerSession.js Outdated Show resolved Hide resolved
lib/Transponder.js Outdated Show resolved Hide resolved
@bcostdolby bcostdolby marked this pull request as ready for review August 30, 2024 05:28
@@ -275,6 +278,8 @@ class Transponder extends Emitter
/**
* Select encoding and temporal and spatial layers based on the desired bitrate. This operation will unmute the transponder if it was muted and it is possible to select an encoding and layer based on the target bitrate and options.
*
* @deprecated since version 1.149. Will be deleted in version 2.0. Please use setTargetBitrateAsync instead
Copy link
Member

Choose a reason for hiding this comment

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

iirc there was a problem with the @deprecated and ts anotations, @mildsunrise am I wrong?

@@ -417,6 +433,8 @@ class Transponder extends Emitter
layers : layers
});
} else {
this.logger?.warn(`-Transponder::setTargetBitrate() Unable to locate layer suitable for target bitrate ${target} and strict mode, so muting`);
Copy link
Member

Choose a reason for hiding this comment

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

better create a child logger with transponder on constructor id and just have the method name here.

Suggested change
this.logger?.warn(`-Transponder::setTargetBitrate() Unable to locate layer suitable for target bitrate ${target} and strict mode, so muting`);
this.logger?.warn(`-setTargetBitrate() Unable to locate layer suitable for target bitrate ${target} and strict mode, so muting`);

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.

2 participants