Log session_id when proxy per client task errors out.

This commit is contained in:
Arseny Sher
2023-04-05 14:55:55 +04:00
committed by Arseny Sher
parent 3be81dd36b
commit f5b4697c90

View File

@@ -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:#}");
}),
);
}