Kaynağa Gözat

Merge pull request #73 from ianrose14/master

Don't ignore errors in LibratoClient.Run()
Richard Crowley 11 yıl önce
ebeveyn
işleme
bcb416b2a3
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      librato/librato.go

+ 2 - 0
librato/librato.go

@@ -46,9 +46,11 @@ func (self *Reporter) Run() {
 		var err error
 		if metrics, err = self.BuildRequest(now, self.Registry); err != nil {
 			log.Printf("ERROR constructing librato request body %s", err)
+			continue
 		}
 		if err := metricsApi.PostMetrics(metrics); err != nil {
 			log.Printf("ERROR sending metrics to librato %s", err)
+			continue
 		}
 	}
 }