diff --git a/src/xenia/base/logging.cc b/src/xenia/base/logging.cc index 11f242ea7..0b195e85a 100644 --- a/src/xenia/base/logging.cc +++ b/src/xenia/base/logging.cc @@ -66,6 +66,7 @@ thread_local char thread_log_buffer_[64 * 1024]; void FileLogSink::Write(const char* buf, size_t size) { if (file_) { + fwrite(buf, 1, size, file_); } } @@ -94,7 +95,7 @@ class Logger { xe::threading::Wait(write_thread_.get(), true); } - void AddLogSink(std::unique_ptr sink) { + void AddLogSink(std::unique_ptr&& sink) { sinks_.push_back(std::move(sink)); }