diff --git a/Cargo.toml b/Cargo.toml index 1a9add8..fc1c906 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,4 @@ sha1 = "0.10.6" tokio = { version = "1", features = [ "rt" ] } xmpp = { git = "https://gitlab.com/xmpp-rs/xmpp-rs" } async-channel = "2.3.1" +env_logger = { version = "0.11.3", default-features = false, features = ["color", "auto-color", "humantime"] } diff --git a/src/main.rs b/src/main.rs index b532a10..4bf3e6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,6 +41,8 @@ fn xep_0392(input: &str) -> String { } fn main() { + env_logger::init(); + let mut args = std::env::args(); let _ = args.next().unwrap(); let username = args.next().expect("Please give username argument 1");