diff --git a/src/util/logging.cpp b/src/util/logging.cpp index c76aecc1bff..c967947789f 100644 --- a/src/util/logging.cpp +++ b/src/util/logging.cpp @@ -155,6 +155,10 @@ void handleMessage( writeFlags = WriteFlag::All; break; } + if (!writeFlags) { + // Ignore message for disabled log level + return; + } VERIFY_OR_DEBUG_ASSERT(levelName) { return; }