Improve log for htt-proxy

This commit is contained in:
Σrebe - Romain GERARD 2024-01-09 13:04:13 +01:00
parent 7d88446453
commit 5226360942
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
3 changed files with 11 additions and 5 deletions

View file

@ -18,6 +18,7 @@ use std::task::{Context, Poll};
use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
use tokio::net::TcpStream;
use tokio_rustls::client::TlsStream;
use tracing::instrument;
use url::Host;
use uuid::Uuid;
@ -134,6 +135,7 @@ impl ManageConnection for WsClientConfig {
type Connection = Option<TransportStream>;
type Error = anyhow::Error;
#[instrument(level = "trace", name = "cnx_server", skip_all)]
async fn connect(&self) -> Result<Self::Connection, Self::Error> {
let (host, port) = &self.remote_addr;
let so_mark = self.socket_so_mark;