From c5fad2feea8fd7786541ec27295927d06eeb9097 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Sun, 12 May 2024 06:45:04 +0300 Subject: [PATCH] remove pretty_env_logger --- cli/Cargo.toml | 2 +- cli/src/main.rs | 2 +- examples/rust/logging/Cargo.toml | 2 +- examples/rust/logging/src/main.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 8e5654f..27f7b96 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] clap = { version = "4.4.6", features = ["derive"] } +env_logger = { version = "0.11.3", features = ["color"] } lazy_static = "1.4.0" -pretty_env_logger = "0.5.0" rookie = { path = "../rookie-rs" } serde_json = "1.0.107" diff --git a/cli/src/main.rs b/cli/src/main.rs index 3e04be8..8e4a3cd 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -31,7 +31,7 @@ fn print_version() { fn main() -> Result<(), Box> { let args = Args::parse(); - pretty_env_logger::init(); + env_logger::init(); if args.version { print_version(); diff --git a/examples/rust/logging/Cargo.toml b/examples/rust/logging/Cargo.toml index 9f88688..bbd05f3 100644 --- a/examples/rust/logging/Cargo.toml +++ b/examples/rust/logging/Cargo.toml @@ -6,5 +6,5 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -pretty_env_logger = "0.5.0" +env_logger = { version = "0.11.3", features = ["color"] } rookie = { path = "../../../rookie-rs" } diff --git a/examples/rust/logging/src/main.rs b/examples/rust/logging/src/main.rs index 584e82e..acd16cc 100644 --- a/examples/rust/logging/src/main.rs +++ b/examples/rust/logging/src/main.rs @@ -1,5 +1,5 @@ fn main() { - pretty_env_logger::init(); + env_logger::init(); let cookies = rookie::brave(None).unwrap(); println!("Found {} cookies", cookies.len()); }