Procházet zdrojové kódy

Merge pull request #73 from ianrose14/master

Don't ignore errors in LibratoClient.Run()
Richard Crowley před 11 roky
rodič
revize
bcb416b2a3
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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
 		}
 	}
 }