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

Log: fix some parts of messages not being discarded early #10177

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

julianbrost
Copy link
Contributor

@julianbrost julianbrost commented Sep 27, 2024

m_IsNoOp was introduced to avoid building up log messages that will later be discarded, like debug messages if no debug logging is configured. However, it looks like the template operator<< implemented in the header file was forgotten when adding this feature, all other places writing into m_Buffer already have an if guard like added by this commit.

`m_IsNoOp` was introduced to avoid building up log messages that will later be
discarded, like debug messages if no debug logging is configured. However, it
looks like the template operator<< implemented in the header file was forgotten
when adding this feature, all other places writing into `m_Buffer` already have
an if guard like added by this commit.
@julianbrost julianbrost added the area/log Logging related label Sep 27, 2024
@cla-bot cla-bot bot added the cla/signed label Sep 27, 2024
@yhabteab yhabteab added the consider backporting Should be considered for inclusion in a bugfix release label Oct 21, 2024
@yhabteab yhabteab added this to the 2.15.0 milestone Oct 21, 2024
@yhabteab yhabteab merged commit f4e61ef into master Oct 21, 2024
26 checks passed
@yhabteab yhabteab deleted the log-noop-fix branch October 21, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/log Logging related cla/signed consider backporting Should be considered for inclusion in a bugfix release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants