From 52230fd4e8f5562a08718e1f6d3ba84b6f793517 Mon Sep 17 00:00:00 2001 From: Satori Date: Mon, 16 Nov 2020 19:47:22 +0000 Subject: [PATCH] [Base] Fix FileLogSink not writing to log file --- src/xenia/base/logging.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); }