mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Merge pull request #10177 from Icinga/log-noop-fix
Log: fix some parts of messages not being discarded early
This commit is contained in:
commit
f4e61ef9bd
@ -121,7 +121,10 @@ public:
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
Log& operator<<(const T& val)
|
Log& operator<<(const T& val)
|
||||||
{
|
{
|
||||||
|
if (!m_IsNoOp) {
|
||||||
m_Buffer << val;
|
m_Buffer << val;
|
||||||
|
}
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user