Merge pull request #9457 from Icinga/9441-213

Windows: only include critical messages in early log messages
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-07-28 10:57:29 +02:00 committed by GitHub
commit 54dad4a8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@ Log::~Log()
}
#ifdef _WIN32
if (Logger::IsEarlyLoggingEnabled() && entry.Severity >= Logger::GetConsoleLogSeverity()) {
if (Logger::IsEarlyLoggingEnabled() && entry.Severity >= LogCritical) {
WindowsEventLogLogger::WriteToWindowsEventLog(entry);
}
#endif /* _WIN32 */