Fix error reporting

Signed-off-by: Manuel Buil <mbuil@suse.com>
pull/8413/head
Manuel Buil 2023-08-28 19:17:05 +02:00
parent 3624e6c42c
commit c3d9410216
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) addDeathSig(cmd)
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {
fmt.Fprintf(os.Stderr, "containerd: %s\n", err) logrus.Errorf("containerd exited: %s", err)
} }
os.Exit(1) os.Exit(1)
}() }()