Skip to content

Commit

Permalink
Merge pull request #10177 from Icinga/log-noop-fix
Browse files Browse the repository at this point in the history
Log: fix some parts of messages not being discarded early
  • Loading branch information
yhabteab authored Oct 21, 2024
2 parents 5e9e0bb + f0e084d commit f4e61ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/base/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ class Log
template<typename T>
Log& operator<<(const T& val)
{
m_Buffer << val;
if (!m_IsNoOp) {
m_Buffer << val;
}

return *this;
}

Expand Down

0 comments on commit f4e61ef

Please sign in to comment.