From d3f7632463481a5412b7d6b2a01cdbfd37320757 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Mon, 28 Aug 2023 19:17:05 +0200 Subject: [PATCH] Fix error reporting Signed-off-by: Manuel Buil --- pkg/agent/containerd/containerd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/containerd/containerd.go b/pkg/agent/containerd/containerd.go index 6663af7df472..c18b335ae165 100644 --- a/pkg/agent/containerd/containerd.go +++ b/pkg/agent/containerd/containerd.go @@ -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) }()