diff --git a/Cargo.toml b/Cargo.toml index e4c1833..efa0bc5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,4 +32,4 @@ tokio-tls = { package = "tokio-native-tls", version = "0.3" } xmpp-parsers = "0.18" die = "0.2.0" anyhow = "1.0" - +env_logger = "0.9" diff --git a/src/main.rs b/src/main.rs index 659e0c1..f8d73b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,6 +58,8 @@ struct MyOptions { #[tokio::main] async fn main() { + env_logger::init(); + let args: Vec = args().collect(); // Remember to skip the first argument. That's the program name.