Skip to content

Commit

Permalink
add keep
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jan 2, 2021
1 parent fc80f06 commit 30434b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin/file_split.rs
Original file line number Diff line number Diff line change
@@ -44,8 +44,8 @@ impl RollingType {
match path {
Ok(path) => {
if let Some(v) = path.file_name().to_str() {
//filter temp.log
if v.ends_with("temp.log") {
//filter temp.log and not start with temp
if v.ends_with("temp.log") || !v.starts_with("temp") {
continue;
}
}

0 comments on commit 30434b9

Please sign in to comment.