Skip to content

Commit

Permalink
fix: add log line about controller runtime failing
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
DmitriyMV committed Feb 5, 2024
1 parent ddbabc7 commit 3fe8c12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/app/machined/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3fe8c12

Please sign in to comment.