chore: MaaCore日志文件占用缓解, 取消大小限制

This commit is contained in:
status102
2025-04-20 16:44:48 +08:00
parent 86a861f1c1
commit d42a8ba42e

View File

@@ -770,15 +770,16 @@ private:
if (!std::filesystem::exists(m_log_path) || !std::filesystem::is_regular_file(m_log_path)) {
return;
}
m_buff.close();
m_ofs.close();
std::filesystem::rename(m_log_path, m_log_bak_path);
LoadFileStream();
}
catch (std::filesystem::filesystem_error& e) {
std::cerr << e.what() << std::endl;
}
catch (...) {
}
LoadFileStream();
}
void LoadFileStream()