Skip to content

Commit

Permalink
chore: using debugf instead of infof
Browse files Browse the repository at this point in the history
we are using debugf in all other logrus calls except one.
  • Loading branch information
ricardomaraschini committed Oct 5, 2023
1 parent 87366d0 commit 4263f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/metrics/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/metrics/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4263f9f

Please sign in to comment.