less noisy tracing

This commit is contained in:
Robin Appelman 2023-02-25 22:33:47 +01:00
commit 309f63ad9f

View file

@ -21,7 +21,7 @@ struct Args {
pub type Result<T, E = Error> = std::result::Result<T, E>;
#[tracing::instrument(skip(exports))]
#[tracing::instrument(skip_all, fields(remote = ?stream.peer_addr().ok()))]
fn handle_client(mut stream: TcpStream, exports: Exports) -> Result<(), NbdError> {
let file = handshake(&mut stream, move |name| {
let export_cfg = exports