Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2k stars 574 forks source link

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

Open julianbrost opened 6 days ago

julianbrost commented 6 days ago

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.