From 3fe8c12ca654790695417b3d4f6bb5517e5902b5 Mon Sep 17 00:00:00 2001 From: Dmitriy Matrenichev Date: Mon, 5 Feb 2024 16:53:00 +0300 Subject: [PATCH] fix: add log line about controller runtime failing While we decide what to do with #8263 and #8256 this quickfix at least allows us to see what went wrong Signed-off-by: Dmitriy Matrenichev --- internal/app/machined/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/app/machined/main.go b/internal/app/machined/main.go index 84d9086a9c..f8858d8143 100644 --- a/internal/app/machined/main.go +++ b/internal/app/machined/main.go @@ -207,7 +207,11 @@ func run() error { // Start v2 controller runtime. go func() { if e := c.V1Alpha2().Run(ctx, drainer); e != nil { - errCh <- fmt.Errorf("fatal controller runtime error: %s", e) + ctrlErr := fmt.Errorf("fatal controller runtime error: %s", e) + + log.Printf("controller runtime goroutine error: %s", ctrlErr) + + errCh <- ctrlErr } log.Printf("controller runtime finished")