Fix error reporting

Signed-off-by: Manuel Buil <mbuil@suse.com>
pull/8250/head
Manuel Buil 2023-08-28 19:17:05 +02:00
parent 2cb7023660
commit d3f7632463
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func Run(ctx context.Context, cfg *config.Node) error {
addDeathSig(cmd)
if err := cmd.Run(); err != nil {
fmt.Fprintf(os.Stderr, "containerd: %s\n", err)
logrus.Errorf("containerd exited: %s", err)
}
os.Exit(1)
}()