mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Merge pull request #6456 from Icinga/feature/logger-flush-dev
Keep notes for immediately log flushing
This commit is contained in:
commit
b1adad0a42
@ -238,6 +238,11 @@ Log::~Log()
|
|||||||
|
|
||||||
if (entry.Severity >= logger->GetMinSeverity())
|
if (entry.Severity >= logger->GetMinSeverity())
|
||||||
logger->ProcessLogEntry(entry);
|
logger->ProcessLogEntry(entry);
|
||||||
|
|
||||||
|
#ifdef I2_DEBUG /* I2_DEBUG */
|
||||||
|
/* Always flush, don't depend on the timer. Enable this for development sprints. */
|
||||||
|
//logger->Flush();
|
||||||
|
#endif /* I2_DEBUG */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Logger::IsConsoleLogEnabled() && entry.Severity >= Logger::GetConsoleLogSeverity())
|
if (Logger::IsConsoleLogEnabled() && entry.Severity >= Logger::GetConsoleLogSeverity())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user