diff --git a/Cargo.toml b/Cargo.toml index e330159..69989a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ [package] name = "fast_log" -version = "1.4.0" +version = "1.4.1" description = "Rust async log High-performance asynchronous logging" readme = "Readme.md" authors = ["ce "] diff --git a/src/plugin/file_split.rs b/src/plugin/file_split.rs index dac580f..9a27b23 100644 --- a/src/plugin/file_split.rs +++ b/src/plugin/file_split.rs @@ -228,7 +228,7 @@ impl LogAppender for FileSplitAppender { ///spawn an saver thread to save log file or zip file fn spawn_saver(r: Receiver, packer: Box) { - go!(move || { + std::thread::spawn(move || { loop { if let Ok(pack) = r.recv() { //do rolling