cr: bring back trace call
@@ -54,6 +54,11 @@ impl Builder {
{
let wrapped = self.build(future);
+ kv_log_macro::trace!("spawn", {
+ task_id: wrapped.tag.id().0,
+ parent_task_id: TaskLocalsWrapper::get_current(|t| t.id().0).unwrap_or(0),
+ });
+
let task = wrapped.tag.task().clone();
let smol_task = smol::Task::spawn(wrapped).into();
@@ -69,6 +74,11 @@ impl Builder {
{
let wrapped = self.build(future);
+ kv_log_macro::trace!("spawn_local", {
+ task_id: wrapped.tag.id().0,
+ parent_task_id: TaskLocalsWrapper::get_current(|t| t.id().0).unwrap_or(0),
+ });
+
let task = wrapped.tag.task().clone();
let smol_task = smol::Task::local(wrapped).into();
@@ -89,6 +99,10 @@ impl Builder {
let res = future.await;
let _ = sender.send(res);
});
+ kv_log_macro::trace!("spawn_local", {
+ task_id: wrapped.tag.id().0,
+ parent_task_id: TaskLocalsWrapper::get_current(|t| t.id().0).unwrap_or(0),
+ });
let task = wrapped.tag.task().clone();
wasm_bindgen_futures::spawn_local(wrapped);
@@ -111,6 +125,11 @@ impl Builder {
let _ = sender.send(res);
});
+ kv_log_macro::trace!("spawn_local", {
+ task_id: wrapped.tag.id().0,
+ parent_task_id: TaskLocalsWrapper::get_current(|t| t.id().0).unwrap_or(0),
+ });
+
let task = wrapped.tag.task().clone();
wasm_bindgen_futures::spawn_local(wrapped);
