mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
chore: MaaCore日志文件占用缓解, 取消大小限制
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user