Beginning of incident reporting

This commit is contained in:
Matej Kramny
2015-03-16 01:44:48 +01:00
parent 1cadc9b3b3
commit f478ad9895
5 changed files with 91 additions and 16 deletions

View File

@@ -33,8 +33,8 @@ func SendMetric(metricId int, delay int64) {
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(strconv.Itoa(resp.StatusCode) + " " + string(body))
_, _ = ioutil.ReadAll(resp.Body)
// fmt.Println(strconv.Itoa(resp.StatusCode) + " " + string(body))
if resp.StatusCode != 200 {
fmt.Println("Could not log data point!")