Bump patch version post tag.
[asdcplib.git] / src / KM_log.cpp
index 7ac0f90336c93e08dd3034faf28c6f08229bc11c..d820dba50df002aaf82e652c664d765e829dd386 100755 (executable)
@@ -111,6 +111,7 @@ Kumu::StdioLogSink::WriteEntry(const LogEntry& Entry)
     {
       Entry.CreateStringWithOptions(buf, m_options);
       fputs(buf.c_str(), m_stream);
+      fflush(m_stream);
     }
 }
 
@@ -150,7 +151,8 @@ Kumu::StreamLogSink::WriteEntry(const LogEntry& Entry)
   if ( Entry.TestFilter(m_filter) )
     {
       Entry.CreateStringWithOptions(buf, m_options);
-      write(m_fd, buf.c_str(), buf.size());
+      ssize_t n = write(m_fd, buf.c_str(), buf.size());
+      assert(n==buf.size());
     }
 }