Skip to content

Commit

Permalink
Replace pretty_env_logger with tracing-subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Oct 6, 2022
1 parent 6b24fdd commit 899e7ce
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 63 deletions.
103 changes: 43 additions & 60 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ goblin = "0.5.4"
human-panic = { version = "1.0.3", optional = true }
keyring = { version = "1.1.1", optional = true }
platform-info = "1.0.0"
pretty_env_logger = { version = "0.4.0", optional = true }
regex = "1.4.5"
serde = { version = "1.0.141", features = ["derive"] }
serde_json = "1.0.80"
Expand Down Expand Up @@ -63,6 +62,7 @@ clap = { version = "3.2.19", features = ["derive", "env", "wrap_help"] }
clap_complete = "3.1.3"
clap_complete_fig = "3.1.0"
tracing = "0.1.36"
tracing-subscriber = { version = "0.3.15", optional = true }
dunce = "1.0.2"
pep440 = "0.2.0"

Expand All @@ -84,7 +84,7 @@ rustversion = "1.0.9"
default = ["log", "upload", "rustls", "human-panic"]
upload = ["ureq", "multipart", "rpassword", "configparser", "bytesize"]
password-storage = ["upload", "keyring"]
log = ["pretty_env_logger"]
log = ["tracing-subscriber"]
rustls = ["ureq/tls", "cargo-xwin/rustls-tls"]
native-tls = ["ureq/native-tls", "native-tls-crate", "cargo-xwin/native-tls"]
# Internal feature to speed up the tests significantly
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ fn pep517(subcommand: Pep517Command) -> Result<()> {

fn run() -> Result<()> {
#[cfg(feature = "log")]
pretty_env_logger::init();
tracing_subscriber::fmt::init();

// Allow symlink `maturin` to `ar` to invoke `zig ar`
// See https://github.com/messense/cargo-zigbuild/issues/52
Expand Down

0 comments on commit 899e7ce

Please sign in to comment.