Skip to content

Commit

Permalink
panic if health check service can't start
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis committed Dec 3, 2024
1 parent 250ba10 commit 0c613c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/health/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewRegistration() *serviceregistry.Service[grpchealth.Checker] {
}
})
if err != nil {
srp.Logger.Error("failed to register healthz endpoint", slog.String("error", err.Error()))
panic(errors.Join(errors.New("failed to register healthz endpoint"), err))
}

return nil
Expand Down

0 comments on commit 0c613c1

Please sign in to comment.