Skip to content

Commit 99b6a00

Browse files
author
chenjunliang
committed
读取文件增加写入权限
1 parent 796d826 commit 99b6a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn mysql_audit_log_rotate(sched: &mut JobScheduler, path: String, max_size: u32,
4444
let new_file_name = origin_name.to_owned() + "-" + time_str.as_str() + "." + origin_file_type;
4545
let new_file_path = parent_path.to_str().unwrap().to_owned() + "/" + new_file_name.as_str();
4646
fs::copy(file_path, new_file_path.as_str()).unwrap();
47-
println!("Log copied to:{}", new_file_path);
47+
println!("Log file copied to:{}", new_file_path);
4848

4949
file.set_len(0).unwrap();
5050

0 commit comments

Comments
 (0)