]> granicus.if.org Git - icinga2/commitdiff
Keep notes for immediately log flushing 6456/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Thu, 19 Jul 2018 10:51:30 +0000 (12:51 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 19 Jul 2018 10:51:30 +0000 (12:51 +0200)
Disabled, but kept for future debugging sessions.
Helps with things like #6455

lib/base/logger.cpp

index 8c20231fb881af58fb1e20aadc79c8cacb3a9f14..376296ada0c38075093b1af4eeee0e06cf5bf742 100644 (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())