Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Do not log that metrics are being collected
Browse files Browse the repository at this point in the history
* right now it happens too often

[#164073714]
  • Loading branch information
alex-slynko committed May 2, 2019
1 parent 0833337 commit c745c47
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion k8s/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func NewMetricsCollector(work chan []metrics.Message, scheduler route.TaskSchedu

func (c *MetricsCollector) Start() {
c.scheduler.Schedule(func() error {
c.logger.Info("metrics-collection-started")
metrics, err := c.metricsClient.List(metav1.ListOptions{})
if err != nil {
return xerrors.Errorf("%w", err)
Expand Down
4 changes: 0 additions & 4 deletions k8s/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ var _ = Describe("Metrics", func() {
err = task()
})

It("should log that it is working", func() {
Eventually(logger.Buffer()).Should(gbytes.Say(`"message":"test-logger.metrics-collection-started"`))
})

It("should not return an error", func() {
Expect(err).ToNot(HaveOccurred())
})
Expand Down

0 comments on commit c745c47

Please sign in to comment.