From 4263f9f8488e798b2d383ae33c5940a2c630d72a Mon Sep 17 00:00:00 2001 From: Ricardo Maraschini Date: Thu, 5 Oct 2023 11:59:15 +0200 Subject: [PATCH] chore: using debugf instead of infof we are using debugf in all other logrus calls except one. --- pkg/metrics/events.go | 2 +- pkg/metrics/sender.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metrics/events.go b/pkg/metrics/events.go index 88215f26b..c1da4e48b 100644 --- a/pkg/metrics/events.go +++ b/pkg/metrics/events.go @@ -25,7 +25,7 @@ func (e InstallationStarted) Title() string { return "InstallationStarted" } -// InstallationFinished event is send back home when the installation finishes. +// InstallationSucceeded event is send back home when the installation finishes. type InstallationSucceeded struct { ClusterID uuid.UUID `json:"clusterID"` } diff --git a/pkg/metrics/sender.go b/pkg/metrics/sender.go index 18433953a..a36b16c17 100644 --- a/pkg/metrics/sender.go +++ b/pkg/metrics/sender.go @@ -43,7 +43,7 @@ func (s *Sender) Send(ctx context.Context, ev Event) { url := fmt.Sprintf("%s/helmbin_metrics/%s", s.baseURL, ev.Title()) payload, err := s.payload(ev) if err != nil { - logrus.Infof("unable to get payload for event %s: %s", ev.Title(), err) + logrus.Debugf("unable to get payload for event %s: %s", ev.Title(), err) return } request, err := http.NewRequest(http.MethodPost, url, bytes.NewBuffer(payload))