diff --git a/xmpp-rs/Cargo.toml b/xmpp-rs/Cargo.toml index 19c81cac..224d1d99 100644 --- a/xmpp-rs/Cargo.toml +++ b/xmpp-rs/Cargo.toml @@ -20,6 +20,9 @@ futures = "0.3" tokio = "0.2" log = "0.4" +[dev-dependencies] +env_logger = "0.7" + [features] default = ["avatars"] avatars = [] diff --git a/xmpp-rs/examples/hello_bot.rs b/xmpp-rs/examples/hello_bot.rs index abce4b11..ce2e13e1 100644 --- a/xmpp-rs/examples/hello_bot.rs +++ b/xmpp-rs/examples/hello_bot.rs @@ -4,12 +4,15 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +use env_logger; use std::env::args; use xmpp::{ClientBuilder, ClientFeature, ClientType, Event}; use xmpp_parsers::{message::MessageType, Jid}; #[tokio::main] async fn main() -> Result<(), Option<()>> { + env_logger::init(); + let args: Vec = args().collect(); if args.len() != 3 { println!("Usage: {} ", args[0]);