Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion packages/edge/infra/client/container-runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,17 @@ fn main() -> Result<()> {
&container_id,
root_user_enabled,
) {
Result::Ok(exit_code) => exit_code,
Result::Ok(exit_code) => {
eprintln!("run container exited: {exit_code}");
container::send_message(
&msg_tx,
None,
log_shipper::StreamType::StdErr,
format!("Exited with exit code {exit_code}"),
);
Comment on lines +71 to +76
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider using stdout instead of stderr for successful exit codes since this is expected behavior, not an error condition


exit_code
}
Err(err) => {
eprintln!("run container failed: {err:?}");
container::send_message(
Expand Down
Loading