Skip to content

Commit

Permalink
Migrate logging from slog to tracing (cloudflare#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah-Kennedy authored Oct 22, 2021
1 parent f383683 commit 24a1ab2
Show file tree
Hide file tree
Showing 10 changed files with 290 additions and 284 deletions.
247 changes: 171 additions & 76 deletions Cargo.lock

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

15 changes: 11 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,20 @@ hex = "0.4"
untrusted = "0.7"
libc = "0.2"
parking_lot = "0.11"
slog = "2.7"
slog-term = { version = "2.7", optional = true }
tracing = "0.1.29"
ip_network = "0.3.4"
ip_network_table = "0.1.2"

[dependencies.tracing-subscriber]
version = "0.2.25"
optional = true

[dependencies.tracing-appender]
version = "0.1.2"
optional = true

[dev-dependencies]
slog-term = { version = "2.7" }
tracing-subscriber = "0.2.25"

[target.'cfg(not(target_arch="arm"))'.dependencies]
ring = "0.16"
Expand All @@ -33,7 +40,7 @@ jni = "0.10"

[features]
default = ["build-binary"]
build-binary = ["slog-term", "clap", "daemonize"]
build-binary = ["tracing-subscriber", "tracing-appender", "clap", "daemonize"]

[lib]
crate-type = ["lib", "staticlib", "dylib"]
Expand Down
Loading

0 comments on commit 24a1ab2

Please sign in to comment.