Fix LOG_FLUSH to flush only when automatic mode is disabled
This commit is contained in:
@@ -21,10 +21,11 @@
|
||||
#define LOG_STR(messageType, str) Log::Logger::Write(LogType::messageType, str)
|
||||
|
||||
#if LOG_ENABLE_AUTO_FLUSH
|
||||
// Noop as log is auto-flushed on write
|
||||
#define LOG_FLUSH()
|
||||
#else
|
||||
// Flushes the log file buffer
|
||||
#define LOG_FLUSH() Log::Logger::Flush()
|
||||
#else
|
||||
#define LOG_FLUSH()
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user