Skip to content

Commit

Permalink
[Heartbeat] Set log level to warn for zip download errors (#28440) (#…
Browse files Browse the repository at this point in the history
…28446)

* [Heartbeat] Set log level to warn for zip download errors

This was set to Info for no good reason, causing it to not show up in
agent logs.

* changelog

(cherry picked from commit ce0eda1)

Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
  • Loading branch information
mergify[bot] and andrewvc committed Nov 1, 2021
1 parent 0ae54f2 commit fa90c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/heartbeat/monitors/browser/source/zipurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func retryingZipRequest(method string, z *ZipURLSource) (resp *http.Response, er
if err == nil {
resp.Body.Close()
}
logp.Info("attempt to download zip at %s failed: %s, will retry in 1s", z.URL, err)
logp.Warn("attempt to download zip at %s failed: %s, will retry in 1s", z.URL, err)
time.Sleep(time.Second)
}
if resp != nil && resp.StatusCode > 300 {
Expand Down

0 comments on commit fa90c49

Please sign in to comment.