Skip to content

Commit

Permalink
fix: error logging when failed to get exit code
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Braun <[email protected]>
  • Loading branch information
pb82 committed Oct 1, 2024
1 parent e40b28f commit 1982a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/domain/infra/tunnel/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ func (ic *ContainerEngine) ContainerRun(ctx context.Context, opts entities.Conta
// Wait for all events to be read
mutex.Lock()
if eventsErr != nil || lastEvent == nil {
logrus.Errorf("Cannot get exit code: %v", err)
logrus.Errorf("Cannot get exit code: %v, last event: %v", eventsErr, lastEvent)
report.ExitCode = define.ExecErrorCodeNotFound
return &report, nil //nolint: nilerr
}
Expand Down

0 comments on commit 1982a87

Please sign in to comment.