fix: service logs are not cleared

#695
This commit is contained in:
MystiPanda 2024-03-20 20:31:00 +08:00
parent 333ee1e1f7
commit e8b2e79c7d

View File

@ -135,6 +135,13 @@ pub fn delete_log() -> Result<()> {
for file in fs::read_dir(&log_dir)?.flatten() {
let _ = process_file(file);
}
#[cfg(target_os = "windows")]
{
let service_log_dir = log_dir.join("service");
for file in fs::read_dir(&service_log_dir)?.flatten() {
let _ = process_file(file);
}
}
Ok(())
}