Merge pull request #9441 from Icinga/feature/windows-early-log-severity

Windows: only include critical messages in early log messages
This commit is contained in:
Julian Brost 2022-07-26 12:06:23 +02:00 committed by GitHub
commit 290e38f0e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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