Skip to content

Commit

Permalink
log the trigger type that exited first
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
  • Loading branch information
rajatjindal committed Apr 4, 2024
1 parent cbcac65 commit cf672ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion containerd-shim-spin/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ impl SpinEngine {
info!(" >>> notifying main thread we are about to start");

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

drop(rest);

Expand Down

0 comments on commit cf672ff

Please sign in to comment.