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")