vmm: log successful TCP/TLS handshake

This helps operators and developers to easily verify if the TLS
handshake was successful.

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-06-24 11:00:11 +02:00
committed by Bo Chen
parent 90429c56c8
commit 9dc970630b

View File

@@ -70,6 +70,7 @@ impl ReceiveListener {
.map(SocketStream::Tls)
.context("Failed to accept TLS migration connection")
.map_err(MigratableError::MigrateReceive)
.inspect(|_| info!("TLS handshake (server-side/receiver) successful"))
}
}
}
@@ -942,6 +943,7 @@ pub(crate) fn send_migration_socket(
.map(SocketStream::Tls)
.context("Error creating TLS migration stream")
.map_err(MigratableError::MigrateSend)
.inspect(|_| info!("TLS handshake (client-side/sender) successful"))
} else {
Ok(SocketStream::Tcp(socket))
}