From 2643f1550fd03ab9e30970faafb06fc2e90b3cf8 Mon Sep 17 00:00:00 2001 From: Brian Akins Date: Wed, 26 Jul 2017 18:40:56 -0400 Subject: [PATCH] cleanup debug statements --- exporter.go | 2 +- mapper.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/exporter.go b/exporter.go index c00a4a8..36b87b3 100644 --- a/exporter.go +++ b/exporter.go @@ -318,7 +318,7 @@ func (b *Exporter) Listen(e <-chan Events) { } switch t { - case "histogram": + case timerTypeHistogram: histogram, err := b.Histograms.Get( b.suffix(metricName, "timer"), prometheusLabels, diff --git a/mapper.go b/mapper.go index 4d1e172..af861c4 100644 --- a/mapper.go +++ b/mapper.go @@ -128,13 +128,10 @@ func (m *metricMapper) initFromString(fileContents string) error { func (m *metricMapper) initFromYAMLString(fileContents string) error { var n metricMapper - fmt.Println(fileContents) - if err := yaml.Unmarshal([]byte(fileContents), &n); err != nil { return err } - fmt.Printf("%#v\n", n) if n.Defaults.Buckets == nil || len(n.Defaults.Buckets) == 0 { n.Defaults.Buckets = prometheus.DefBuckets }