Skip to content

Commit 1edbce5

Browse files
committed
Add additional logging of remote measurements at the point of connecting or accepting connection
1 parent b5ff02f commit 1edbce5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl ProxyServer {
195195
target: String,
196196
client_addr: SocketAddr,
197197
) -> Result<(), ProxyError> {
198-
debug!("[proxy-server] accepted connection");
198+
debug!("[proxy-server] accepted connection with measurements: {measurements:?}");
199199

200200
let http_version = HttpVersion::from_negotiated_protocol_server(&tls_stream);
201201

@@ -629,6 +629,7 @@ impl ProxyClient {
629629
ProxyError,
630630
> {
631631
let (tls_stream, measurements, remote_attestation_type) = inner.connect_tcp(target).await?;
632+
debug!("[proxy-client] Connected to proxy server with measurements: {measurements:?}");
632633

633634
// The attestation exchange is now complete - setup an HTTP client
634635
let http_version = HttpVersion::from_negotiated_protocol_client(&tls_stream);

0 commit comments

Comments
 (0)