From 7c85e6e006069989e3853f9aa4a266f3e6ddf622 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 4 Jun 2024 18:01:36 +0200 Subject: [PATCH] Enable env_logger This is probably temporary, as we will most likely want to have a debug console, but this will do for now. --- Cargo.toml | 1 + src/main.rs | 2 ++ 2 files changed, 3 insertions(+) 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");