Skip to content

Commit

Permalink
fix: file-rotate-0.6.0 compatibility
Browse files Browse the repository at this point in the history
- file_rotate::suffix::TimestampSuffixScheme was renamed to file_rotate::suffix::AppendTimestamp
  • Loading branch information
mark-stopka committed Feb 7, 2022
1 parent 96a4d31 commit 714fb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sinks/logs/setup.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use file_rotate::{
suffix::{FileLimit, TimestampSuffixScheme},
suffix::{FileLimit, AppendTimestamp},
ContentLimit, FileRotate,
};
use std::{io::Write, path::PathBuf, str::FromStr};
Expand Down Expand Up @@ -37,7 +37,7 @@ fn build_witer(config: &Config) -> Result<impl Write, Error> {
None => std::env::current_dir()?,
};

let suffix_scheme = TimestampSuffixScheme::default(FileLimit::MaxFiles(
let suffix_scheme = AppendTimestamp::default(FileLimit::MaxFiles(
config.max_total_files.unwrap_or(DEFAULT_MAX_TOTAL_FILES),
));

Expand Down

0 comments on commit 714fb93

Please sign in to comment.