Skip to content

Commit 7a39751

Browse files
fix: limit number of log files (#28)
Temporary workaround since the current release of `tracing-appender` does not work as intended. Hence, we use the `git` sources for the `tracing`-related crates, which include a fix.
1 parent e5a77db commit 7a39751

File tree

3 files changed

+15
-23
lines changed

3 files changed

+15
-23
lines changed

Cargo.lock

Lines changed: 7 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ rusqlite_migration = { version = "2.3", features = ["from-directory"] }
3030
include_dir = { version = "0.7" }
3131

3232
# Logging
33-
tracing = { version = "0.1" }
34-
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
35-
tracing-appender = { version = "0.2" }
33+
tracing = { version = "0.1", git = "https://github.com/tokio-rs/tracing.git" }
34+
tracing-subscriber = { features = [
35+
"env-filter",
36+
], git = "https://github.com/tokio-rs/tracing.git" }
37+
tracing-appender = { version = "0.2", git = "https://github.com/tokio-rs/tracing.git" }
3638

3739
# Misc
3840
unicode-segmentation = "1.10" # Limit preview width by grapheme clusters

deny.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ no-default-features = false
66
feature-depth = 1
77

88
[advisories]
9-
# Ignore unmaintained crates for now - `paste` used by `ratatui` is unmaintained.
10-
# TODO: remove when `0.30` is released
9+
# `paste` crate used by `images`
1110
unmaintained = "none"
1211

1312
[licenses]
@@ -36,8 +35,5 @@ external-default-features = "allow"
3635
[sources]
3736
unknown-registry = "deny"
3837
unknown-git = "deny"
39-
allow-registry = [
40-
"https://github.com/rust-lang/crates.io-index",
41-
"https://github.com/juhaku/utoipa",
42-
]
43-
allow-git = []
38+
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
39+
allow-git = ["https://github.com/tokio-rs/tracing.git"]

0 commit comments

Comments
 (0)