diff options
| author | jhurst <jhurst@cinecert.com> | 2019-07-02 11:45:21 -0500 |
|---|---|---|
| committer | jhurst <jhurst@cinecert.com> | 2019-07-02 11:45:21 -0500 |
| commit | 1f46216c14f3582f47b290c5ab4dd0c9a02b90f4 (patch) | |
| tree | a755e4cee10a37a70ca2e9e8b727dda3d96aeaf5 /src/KM_log.cpp | |
| parent | 59fbed4c8acbc1c5c109a1813dbdde429908aaf0 (diff) | |
Added debug-mode test of ignored return value
Diffstat (limited to 'src/KM_log.cpp')
| -rwxr-xr-x | src/KM_log.cpp | 3 |
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()); } } |
