RUST_LOG=debug can now be used in tokio-xmpp examples to see XMPP network traffic

This commit is contained in:
xmppftw 2023-06-05 13:06:52 +02:00 committed by pep
parent ae67949e7a
commit 3ac741d666
7 changed files with 16 additions and 1 deletions

View file

@ -31,6 +31,9 @@ rxml = "0.9.1"
webpki-roots = { version = "0.23", optional = true }
rand = "^0.8"
[dev-dependencies]
env_logger = "0.10"
[build-dependencies]
rustc_version = "0.4"

View file

@ -1,3 +1,5 @@
xxxxxxxxxx
* Breaking changes:
- AsyncClient::new takes a parsed Jid instead of string (#72)
- AsyncClient::new takes a parsed Jid instead of string (#72)
* Changes:
- env_logger is now included in dev_dependencies for examples debugging with RUST_LOG=debug

View file

@ -14,6 +14,8 @@ use xmpp_parsers::{
#[tokio::main]
async fn main() {
env_logger::init();
let args: Vec<String> = args().collect();
if args.len() != 4 {
println!("Usage: {} <jid> <password> <target>", args[0]);

View file

@ -27,6 +27,8 @@ use xmpp_parsers::{
#[tokio::main]
async fn main() {
env_logger::init();
let args: Vec<String> = args().collect();
if args.len() != 3 {
println!("Usage: {} <jid> <password>", args[0]);

View file

@ -11,6 +11,8 @@ use xmpp_parsers::{BareJid, Element, Jid};
#[tokio::main]
async fn main() {
env_logger::init();
let args: Vec<String> = args().collect();
if args.len() != 3 {
println!("Usage: {} <jid> <password>", args[0]);

View file

@ -10,6 +10,8 @@ use xmpp_parsers::{Element, Jid};
#[tokio::main]
async fn main() {
env_logger::init();
let args: Vec<String> = args().collect();
if args.len() < 3 || args.len() > 5 {
println!("Usage: {} <jid> <password> [server] [port]", args[0]);

View file

@ -9,6 +9,8 @@ use xmpp_parsers::Jid;
#[tokio::main]
async fn main() {
env_logger::init();
let args: Vec<String> = args().collect();
if args.len() != 4 {
println!("Usage: {} <jid> <password> <recipient>", args[0]);