Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Gonzalez Labrador committed Jan 19, 2021
1 parent f4a2292 commit b897b22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/metrics/driver/xcloud/xcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ func (d *CloudDriver) refresh() error {
return err
}


log.Info().Msgf("xcloud: site registered: %s", string(body))

return nil
}

Expand All @@ -189,7 +187,9 @@ func (d *CloudDriver) Configure(c *config.Config) error {
select {
case <-ticker.C:
err := d.refresh()
log.Err(err).Msgf("xcloud: error from refresh goroutine")
if err != nil {
log.Err(err).Msgf("xcloud: error from refresh goroutine")
}
case <-quit:
ticker.Stop()
return
Expand Down

0 comments on commit b897b22

Please sign in to comment.