Skip to content

Commit

Permalink
Reduce log spam about errors determining upgrade versions (#42572)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy authored Jun 7, 2024
1 parent 9de210c commit a565e82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/web/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,9 @@ func (h *Handler) getWebConfig(w http.ResponseWriter, r *http.Request, p httprou
var automaticUpgradesTargetVersion string
if automaticUpgradesEnabled {
automaticUpgradesTargetVersion, err = h.cfg.AutomaticUpgradesChannels.DefaultVersion(r.Context())
h.log.WithError(err).Error("Cannot read target version")
if err != nil {
h.log.WithError(err).Error("Cannot read target version")
}
}

webCfg := webclient.WebConfig{
Expand Down

0 comments on commit a565e82

Please sign in to comment.