Fix spdlog, add TeamsLeft print

This commit is contained in:
Gray
2025-03-23 12:30:45 -04:00
parent 292c559563
commit 74c588d51e
51 changed files with 3670 additions and 2929 deletions

View File

@@ -101,7 +101,8 @@ SPDLOG_INLINE void file_helper::write(const memory_buf_t &buf) {
if (fd_ == nullptr) return;
size_t msg_size = buf.size();
auto data = buf.data();
if (std::fwrite(data, 1, msg_size, fd_) != msg_size) {
if (!details::os::fwrite_bytes(data, msg_size, fd_)) {
throw_spdlog_ex("Failed writing to file " + os::filename_to_str(filename_), errno);
}
}