X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=stream.cpp;h=2b9a69593a478605800fd21c9585063eebec8d0c;hp=ab10e35390fd9d6a16abe261e2d28f1f7f9b4e9f;hb=0d72f384a1de672824298262ba5c427ec0aee2d6;hpb=40ed7df894c8645c132a5bea2bfb12a9be2b82ef diff --git a/stream.cpp b/stream.cpp index ab10e35..2b9a695 100644 --- a/stream.cpp +++ b/stream.cpp @@ -6,6 +6,7 @@ #include #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; }