Skip to content

Commit

Permalink
do not log proxy credentials in connect error
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC committed Nov 7, 2024
1 parent 61c71e2 commit d67551c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ where
.connect(ctx, req)
.await
.map_err(|err| match address.as_ref() {
Some(address) => OpaqueError::from_boxed(err.into())
.context(format!("establish connection to proxy {}", address)),
Some(address) => OpaqueError::from_boxed(err.into()).context(format!(
"establish connection to proxy {} (protocol: {:?})",
address.authority, address.protocol
)),
None => {
OpaqueError::from_boxed(err.into()).context("establish connection target")
}
Expand Down

0 comments on commit d67551c

Please sign in to comment.