mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
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:
commit
290e38f0e4
@ -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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user