Enable env_logger

This is probably temporary, as we will most likely want to have a debug
console, but this will do for now.
This commit is contained in:
Emmanuel Gil Peyrot 2024-06-04 18:01:36 +02:00
parent 950571be81
commit 7c85e6e006
2 changed files with 3 additions and 0 deletions

View File

@ -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"] }

View File

@ -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");