ソースを参照

Merge pull request #73 from ianrose14/master

Don't ignore errors in LibratoClient.Run()
Richard Crowley 11 年 前
コミット
bcb416b2a3
1 ファイル変更2 行追加0 行削除
  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
 		}
 	}
 }