Skip to content

Commit

Permalink
chore(deps): bump file-rotate from 0.5.3 to 0.6.0 (#133)
Browse files Browse the repository at this point in the history
* chore(deps): bump file-rotate from 0.5.3 to 0.6.0

Bumps [file-rotate](https://github.com/BourgondAries/file-rotate) from 0.5.3 to 0.6.0.
- [Release notes](https://github.com/BourgondAries/file-rotate/releases)
- [Commits](kstrafe/file-rotate@v0.5.3...v0.6.0)

---
updated-dependencies:
- dependency-name: file-rotate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: file-rotate-0.6.0 compatibility

- file_rotate::suffix::TimestampSuffixScheme was renamed to file_rotate::suffix::AppendTimestamp

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mark Stopka <mark.stopka@perlur.cloud>
  • Loading branch information
dependabot[bot] and mark-stopka authored Feb 7, 2022
1 parent ebb3d60 commit 932d5ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ strum_macros = "0.23"
minicbor = "0.13"

# feature logs
file-rotate = { version = "0.5.3", optional = true }
file-rotate = { version = "0.6.0", optional = true }

# feature: webhook
reqwest = { version = "0.11", optional = true, features = ["blocking", "json"] }
Expand Down
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::{AppendTimestamp, FileLimit},
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 932d5ed

Please sign in to comment.