Skip to content

Commit 4b9e147

Browse files
committed
Replace env_logger dependency with tracing-subscriber
1 parent 813507d commit 4b9e147

File tree

3 files changed

+116
-22
lines changed

3 files changed

+116
-22
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ dialoguer = "0.7.1"
5454
diesel = { version = "1.4.0", features = ["postgres", "serde_json", "chrono", "r2d2"] }
5555
diesel_full_text_search = "1.0.0"
5656
dotenv = "0.15"
57-
env_logger = "0.8"
5857
failure = "0.1.1"
5958
flate2 = "1.0"
6059
futures-channel = { version = "0.3.1", default-features = false }
@@ -85,6 +84,7 @@ tempfile = "3"
8584
tokio = { version = "0.2", default-features = false, features = ["net", "signal", "io-std"]}
8685
toml = "0.5"
8786
tracing = "0.1"
87+
tracing-subscriber = "0.2"
8888
url = "2.1"
8989

9090
[dev-dependencies]

src/bin/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
4545
});
4646

4747
// Initialize logging
48-
env_logger::init();
48+
tracing_subscriber::fmt::init();
4949

5050
let config = cargo_registry::Config::default();
5151
let client = Client::new();

0 commit comments

Comments
 (0)