Skip to content

Fix logging channel setting #5261

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

Merged
merged 1 commit into from
Mar 3, 2025
Merged

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Feb 28, 2025

Issue

The user setting to control the logging channels was no longer being respected after a previous change to enable all channels during initialization (and to send the initialization logs to the debug stream).

Change

EnableChannel for logging has always been semantically "add the given channel(s) to the list of enabled channels".

Every place that we were calling EnableChannel was really semantically wanting to set the list of enabled channels rather than add to it.

This change creates a new function SetEnabledChannels that behaves that way; it simply sets the enabled channel mask to the given value. All callers of EnableChannel were changed to use this new function.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner February 28, 2025 23:49
@JohnMcPMS JohnMcPMS merged commit c20c717 into microsoft:master Mar 3, 2025
9 checks passed
@JohnMcPMS JohnMcPMS deleted the logging-channels branch March 3, 2025 17:53
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