Skip to content

Commit b25611f

Browse files
authored
resolve: debug log to change only host (#2992)
Close #2971
1 parent ca1f479 commit b25611f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/connect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ impl ConnectorService {
781781
}
782782

783783
async fn connect_via_proxy(self, dst: Uri, proxy: Intercepted) -> Result<Conn, BoxError> {
784-
log::debug!("proxy({proxy:?}) intercepts '{dst:?}'");
784+
log::debug!("proxy({proxy:?}) intercepts '{:?}'", dst.host());
785785

786786
#[cfg(feature = "socks")]
787787
match proxy.uri().scheme_str().ok_or("proxy scheme expected")? {
@@ -926,7 +926,7 @@ impl Service<Uri> for ConnectorService {
926926
}
927927

928928
fn call(&mut self, dst: Uri) -> Self::Future {
929-
log::debug!("starting new connection: {dst:?}");
929+
log::debug!("starting new connection '{:?}'", dst.host());
930930
let timeout = self.simple_timeout;
931931

932932
// Local transports (UDS, Windows Named Pipes) skip proxies

0 commit comments

Comments
 (0)