]> git.sesse.net Git - cubemap/blobdiff - stream.cpp
Identify UDPInput error messages by the stream, too.
[cubemap] / stream.cpp
index ab10e35390fd9d6a16abe261e2d28f1f7f9b4e9f..2b9a69593a478605800fd21c9585063eebec8d0c 100644 (file)
@@ -6,6 +6,7 @@
 #include <vector>
 
 #include "state.pb.h"
+#include "log.h"
 #include "stream.h"
 #include "util.h"
 
@@ -31,7 +32,7 @@ Stream::~Stream()
                        ret = close(data_fd);
                } while (ret == -1 && errno == EINTR);
                if (ret == -1) {
-                       perror("close");
+                       log_perror("close");
                }
        }
 }
@@ -116,7 +117,7 @@ void Stream::add_data(const char *data, ssize_t bytes)
                                continue;
                        }
                        if (ret == -1) {
-                               perror("pwrite");
+                               log_perror("pwrite");
                                // Dazed and confused, but trying to continue...
                                break;
                        }
@@ -134,7 +135,7 @@ void Stream::add_data(const char *data, ssize_t bytes)
                        continue;
                }
                if (ret == -1) {
-                       perror("pwrite");
+                       log_perror("pwrite");
                        // Dazed and confused, but trying to continue...
                        break;
                }