Skip to content

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

Merged
yhabteab merged 1 commit intomasterfrom
log-noop-fix
Oct 21, 2024
Merged

Log: fix some parts of messages not being discarded early#10177
yhabteab merged 1 commit intomasterfrom
log-noop-fix

Conversation

@julianbrost
Copy link
Copy Markdown
Member

@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
@yhabteab yhabteab deleted the log-noop-fix branch October 21, 2024 07:31
@Al2Klimov Al2Klimov removed the consider backporting Should be considered for inclusion in a bugfix release label Feb 4, 2025
@yhabteab yhabteab added the bug Something isn't working label Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/log Logging related bug Something isn't working cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants