Skip to content

Commit 9229593

Browse files
committed
log the trigger type that exited first
Signed-off-by: Rajat Jindal <[email protected]>
1 parent c4ef512 commit 9229593

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

containerd-shim-spin/src/engine.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,11 @@ impl SpinEngine {
266266
info!(" >>> notifying main thread we are about to start");
267267

268268
// exit as soon as any of the trigger completes/exits
269-
let (result, _, rest) = future::select_all(futures_list).await;
269+
let (result, index, rest) = future::select_all(futures_list).await;
270+
info!(
271+
" >>> trigger type '{trigger_type}' exited",
272+
trigger_type = trigger_types[index]
273+
);
270274

271275
drop(rest);
272276

0 commit comments

Comments
 (0)