Skip to content

Commit

Permalink
feat: improve error messages by including tracing-error
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Dec 24, 2024
1 parent 4f50c70 commit 82b21eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

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

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ tokio = { version = "1.42.0", features = [
toml_edit = "0.22.22"
tracing = "0.1.41"
tracing-appender = "0.2.3"
tracing-error = "0.2.1"
tracing-journald = "0.3.1"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
tracing-subscriber = { version = "0.3.19", features = [
"env-filter",
"tracing-log",
] }
uzers = "0.12.1"
xcrypt = "0.3.0"
#zbus = "5.2.0"
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ fn setup_logs_and_install_panic_hook() -> impl std::any::Any {
.with_ansi(false)
.compact(),
)
.with(tracing_error::ErrorLayer::default())
.init();

if cfg!(debug_assertions) {
Expand Down

0 comments on commit 82b21eb

Please sign in to comment.