diff --git a/proxy/src/proxy.rs b/proxy/src/proxy.rs index 9945e3697f..1169d76160 100644 --- a/proxy/src/proxy.rs +++ b/proxy/src/proxy.rs @@ -95,9 +95,9 @@ pub async fn task_main( handle_client(config, &cancel_map, session_id, socket).await } - .unwrap_or_else(|e| { + .unwrap_or_else(move |e| { // Acknowledge that the task has finished with an error. - error!("per-client task finished with an error: {e:#}"); + error!(?session_id, "per-client task finished with an error: {e:#}"); }), ); }