Skip to content

Commit

Permalink
Ignore upgrade checker error (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok authored Feb 23, 2024
1 parent 9b875f5 commit 73c3588
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/botkube-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,12 @@ func run(ctx context.Context) (err error) {
)
errGroup.Go(func() error {
defer analytics.ReportPanicIfOccurs(logger, analyticsReporter)
return upgradeChecker.Run(ctx)
err := upgradeChecker.Run(ctx)
if err != nil {
// we ignore error to make sure that upgrade checker does not stop the agent
logger.WithError(err).Errorf("Failed to notify about upgrade")
}
return nil
})
}

Expand Down

0 comments on commit 73c3588

Please sign in to comment.