Merge pull request #6456 from Icinga/feature/logger-flush-dev

Keep notes for immediately log flushing
This commit is contained in:
Michael Friedrich 2018-07-26 09:58:59 +02:00 committed by GitHub
commit b1adad0a42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -238,6 +238,11 @@ Log::~Log()
if (entry.Severity >= logger->GetMinSeverity())
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())