Skip to content

Commit

Permalink
use tracing crate
Browse files Browse the repository at this point in the history
  • Loading branch information
spl0i7 authored and felinira committed Sep 3, 2024
1 parent 6d8a9c8 commit 22b261b
Show file tree
Hide file tree
Showing 17 changed files with 277 additions and 202 deletions.
104 changes: 100 additions & 4 deletions Cargo.lock

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

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ thiserror = "1.0.24"
time = "0.3.7"
trycmd = "0.15"
url = "2.2.2"
tracing = "0.1"
tracing-subscriber = "0.3"
test-log = "0.2"

[package]
name = "magic-wormhole"
Expand Down Expand Up @@ -101,6 +104,8 @@ futures = { workspace = true }
url = { workspace = true, features = ["serde"] }
percent-encoding = { workspace = true }

tracing = { workspace = true, features = ["log", "log-always"]}

# Transit dependencies


Expand Down Expand Up @@ -138,7 +143,7 @@ getrandom = { version = "0.2.5", features = ["js"] }

# for some tests
[dev-dependencies]
env_logger = { workspace = true }
test-log = { workspace = true}
eyre = { workspace = true }

[features]
Expand Down
2 changes: 2 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ number_prefix = { workspace = true }
ctrlc = { workspace = true }
qr2term = { workspace = true }
arboard = { workspace = true, features = ["wayland-data-control"] } # Wayland by default, fallback to X11.
tracing = { workspace = true, features = ["log", "log-always"] }
tracing-subscriber = { workspace=true, features = ["env-filter"] }

[dev-dependencies]
trycmd = { workspace = true }
Expand Down
Loading

0 comments on commit 22b261b

Please sign in to comment.