Skip to content

Commit

Permalink
Ignore errors when printing metrics
Browse files Browse the repository at this point in the history
The most common "error" was that omq was run with `--help`
so metrics were not available
  • Loading branch information
mkuratczyk committed Feb 26, 2024
1 parent dd27944 commit c985291
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ func (m MetricsServer) PrintMetrics() {
endpoint := fmt.Sprintf("http://%s/metrics", m.httpServer.Addr)
resp, err := http.Get(endpoint)
if err != nil {
log.Error("Error getting metrics", "error", err)
return
}
defer func() { _ = resp.Body.Close() }()
Expand Down

0 comments on commit c985291

Please sign in to comment.