mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Merge pull request #9457 from Icinga/9441-213
Windows: only include critical messages in early log messages
This commit is contained in:
commit
54dad4a8e9
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user