diff --git a/pkg/visor/api.go b/pkg/visor/api.go index bb283a0590..1b562fbcd5 100644 --- a/pkg/visor/api.go +++ b/pkg/visor/api.go @@ -226,7 +226,7 @@ func (v *Visor) Summary() (*Summary, error) { // HealthInfo carries information about visor's services health represented as boolean value (i32 value) type HealthInfo struct { - ServicesHealth bool `json:"services_health,omitempty"` + ServicesHealth bool `json:"services_health"` } // internalHealthInfo contains information of the status of the visor itself. diff --git a/pkg/visor/init.go b/pkg/visor/init.go index d50d9857e3..0acec321f2 100644 --- a/pkg/visor/init.go +++ b/pkg/visor/init.go @@ -606,7 +606,6 @@ func initUptimeTracker(_ context.Context, v *Visor, log *logging.Logger) error { v.isServicesHealthy.unset() log.WithError(err).Warn("Failed to update visor uptime.") } else { - log.Info("updating visor health status") v.isServicesHealthy.set() } } diff --git a/pkg/visor/visor.go b/pkg/visor/visor.go index 20e9dc77fe..3c0c643e53 100644 --- a/pkg/visor/visor.go +++ b/pkg/visor/visor.go @@ -106,6 +106,8 @@ func NewVisor(conf *visorconfig.V1, restartCtx *restart.Context) (*Visor, bool) isServicesHealthy: newInternalHealthInfo(), } + v.isServicesHealthy.unset() + if logLvl, err := logging.LevelFromString(conf.LogLevel); err != nil { v.log.WithError(err).Warn("Failed to read log level from config.") } else {