From 0ce1342032d89bcd61f4717b23f4a364ee87dcdc Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Fri, 13 Oct 2023 01:11:08 +0200 Subject: [PATCH] logs --- crates/projection-xmpp/tests/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/projection-xmpp/tests/lib.rs b/crates/projection-xmpp/tests/lib.rs index 369749b..1a7a907 100644 --- a/crates/projection-xmpp/tests/lib.rs +++ b/crates/projection-xmpp/tests/lib.rs @@ -146,6 +146,7 @@ async fn scenario_basic() -> Result<()> { let mut stream = TcpStream::connect(server.addr).await?; let mut s = TestScope::new(&mut stream); + tracing::info!("TCP connection established"); s.send(r#""#).await?; s.send(r#""#).await?; @@ -159,6 +160,7 @@ async fn scenario_basic() -> Result<()> { s.send(r#""#).await?; assert_matches!(s.next_xml_event().await?, Event::Empty(b) => assert_eq!(b.local_name().into_inner(), b"proceed")); let buffer = s.buffer; + tracing::info!("TLS feature negotiation complete"); let connector = TlsConnector::from(Arc::new( ClientConfig::builder() @@ -166,8 +168,9 @@ async fn scenario_basic() -> Result<()> { .with_custom_certificate_verifier(Arc::new(IgnoreCertVerification)) .with_no_client_auth(), )); - tracing::debug!("Initiating TLS connection..."); + tracing::info!("Initiating TLS connection..."); let mut stream = connector.connect(ServerName::IpAddress(server.addr.ip()), stream).await?; + tracing::info!("TLS connection established"); let mut s = TestScopeTls::new(&mut stream, buffer);