summaryrefslogtreecommitdiff
path: root/src/KM_log.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2019-07-02 11:45:21 -0500
committerjhurst <jhurst@cinecert.com>2019-07-02 11:45:21 -0500
commit1f46216c14f3582f47b290c5ab4dd0c9a02b90f4 (patch)
treea755e4cee10a37a70ca2e9e8b727dda3d96aeaf5 /src/KM_log.cpp
parent59fbed4c8acbc1c5c109a1813dbdde429908aaf0 (diff)
Added debug-mode test of ignored return value
Diffstat (limited to 'src/KM_log.cpp')
-rwxr-xr-xsrc/KM_log.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/KM_log.cpp b/src/KM_log.cpp
index 182d91e..d820dba 100755
--- a/src/KM_log.cpp
+++ b/src/KM_log.cpp
@@ -151,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());
}
}