From 206d9e7b742a0dd9abae260cdd8fc2238f55ab82 Mon Sep 17 00:00:00 2001 From: Iskander Sharipov Date: Mon, 1 Oct 2018 11:49:43 +0300 Subject: [PATCH] metrics: remove commented-out debug code --- metrics/internal/lv/space_test.go | 1 - metrics/teststat/buffers.go | 1 - 2 files changed, 2 deletions(-) diff --git a/metrics/internal/lv/space_test.go b/metrics/internal/lv/space_test.go index 0ef551701..0cdc4fa65 100644 --- a/metrics/internal/lv/space_test.go +++ b/metrics/internal/lv/space_test.go @@ -40,7 +40,6 @@ func TestSpaceWalkSums(t *testing.T) { have := map[string]float64{} s.Walk(func(name string, lvs LabelValues, obs []float64) bool { - //t.Logf("%s %v => %v", name, lvs, obs) have[name+" ["+strings.Join(lvs, "")+"]"] += sum(obs) return true }) diff --git a/metrics/teststat/buffers.go b/metrics/teststat/buffers.go index e38b16c24..d04c52cfe 100644 --- a/metrics/teststat/buffers.go +++ b/metrics/teststat/buffers.go @@ -47,7 +47,6 @@ func stats(w io.WriterTo, regex string, h *generic.Histogram) (sum, final float6 re := regexp.MustCompile(regex) buf := &bytes.Buffer{} w.WriteTo(buf) - //fmt.Fprintf(os.Stderr, "%s\n", buf.String()) s := bufio.NewScanner(buf) for s.Scan() { match := re.FindStringSubmatch(s.Text())