chore(phoenix-channel): log the portal's IP address on connect (#8088)

This commit is contained in:
Thomas Eizinger
2025-02-11 07:11:08 +00:00
committed by GitHub
parent 41f4ae5e7f
commit fc925af6c8

View File

@@ -92,7 +92,7 @@ async fn create_and_connect_websocket(
user_agent: String,
socket_factory: Arc<dyn SocketFactory<TcpSocket>>,
) -> Result<WebSocketStream<MaybeTlsStream<TcpStream>>, InternalError> {
tracing::debug!(host = url.host().map(tracing::field::display), %user_agent, "Connecting to portal");
tracing::debug!(host = url.host().map(tracing::field::display), ?addresses, %user_agent, "Connecting to portal");
let duration = Duration::from_secs(5);
let socket = tokio::time::timeout(duration, connect(addresses, &*socket_factory))