diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index f8ad947c..8c47de16 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -68,14 +68,13 @@ SPDLOG_INLINE void stdout_sink_base::log(const details::log_msg &m { throw_spdlog_ex("stdout_sink_base: WriteFile() failed. GetLastError(): " + std::to_string(::GetLastError())); } - FlushFileBuffers(handle_); // flush every line to terminal #else std::lock_guard lock(mutex_); memory_buf_t formatted; formatter_->format(msg, formatted); ::fwrite(formatted.data(), sizeof(char), formatted.size(), file_); - ::fflush(file_); // flush every line to terminal #endif // WIN32 + ::fflush(file_); // flush every line to terminal } template