@@ -54,6 +54,11 @@ impl Builder {
54
54
{
55
55
let wrapped = self . build ( future) ;
56
56
57
+ kv_log_macro:: trace!( "spawn" , {
58
+ task_id: wrapped. tag. id( ) . 0 ,
59
+ parent_task_id: TaskLocalsWrapper :: get_current( |t| t. id( ) . 0 ) . unwrap_or( 0 ) ,
60
+ } ) ;
61
+
57
62
let task = wrapped. tag . task ( ) . clone ( ) ;
58
63
let smol_task = smol:: Task :: spawn ( wrapped) . into ( ) ;
59
64
@@ -69,6 +74,11 @@ impl Builder {
69
74
{
70
75
let wrapped = self . build ( future) ;
71
76
77
+ kv_log_macro:: trace!( "spawn_local" , {
78
+ task_id: wrapped. tag. id( ) . 0 ,
79
+ parent_task_id: TaskLocalsWrapper :: get_current( |t| t. id( ) . 0 ) . unwrap_or( 0 ) ,
80
+ } ) ;
81
+
72
82
let task = wrapped. tag . task ( ) . clone ( ) ;
73
83
let smol_task = smol:: Task :: local ( wrapped) . into ( ) ;
74
84
@@ -89,6 +99,10 @@ impl Builder {
89
99
let res = future. await ;
90
100
let _ = sender. send ( res) ;
91
101
} ) ;
102
+ kv_log_macro:: trace!( "spawn_local" , {
103
+ task_id: wrapped. tag. id( ) . 0 ,
104
+ parent_task_id: TaskLocalsWrapper :: get_current( |t| t. id( ) . 0 ) . unwrap_or( 0 ) ,
105
+ } ) ;
92
106
93
107
let task = wrapped. tag . task ( ) . clone ( ) ;
94
108
wasm_bindgen_futures:: spawn_local ( wrapped) ;
@@ -111,6 +125,11 @@ impl Builder {
111
125
let _ = sender. send ( res) ;
112
126
} ) ;
113
127
128
+ kv_log_macro:: trace!( "spawn_local" , {
129
+ task_id: wrapped. tag. id( ) . 0 ,
130
+ parent_task_id: TaskLocalsWrapper :: get_current( |t| t. id( ) . 0 ) . unwrap_or( 0 ) ,
131
+ } ) ;
132
+
114
133
let task = wrapped. tag . task ( ) . clone ( ) ;
115
134
wasm_bindgen_futures:: spawn_local ( wrapped) ;
116
135
0 commit comments