Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit da52da3

Browse files
committed
fix tracing import
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 9c36fa4 commit da52da3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

crates/wasi-http/src/p3/client.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use http::uri::Scheme;
66
use http_body_util::BodyExt as _;
77
use tokio::io::{AsyncRead, AsyncWrite};
88
use tokio::net::TcpStream;
9-
use tracing::warn;
109

1110
use crate::p3::bindings::http::types::{DnsErrorPayload, ErrorCode};
1211
use crate::p3::RequestOptions;
@@ -214,12 +213,12 @@ pub async fn default_send_request(
214213
let host = parts.next().unwrap_or(&authority);
215214
let domain = ServerName::try_from(host)
216215
.map_err(|e| {
217-
warn!("dns lookup error: {e:?}");
216+
tracing::warn!("dns lookup error: {e:?}");
218217
dns_error("invalid dns name".to_string(), 0)
219218
})?
220219
.to_owned();
221220
let stream = connector.connect(domain, stream).await.map_err(|e| {
222-
warn!("tls protocol error: {e:?}");
221+
tracing::warn!("tls protocol error: {e:?}");
223222
ErrorCode::TlsProtocolError
224223
})?;
225224
stream.boxed()

0 commit comments

Comments
 (0)