From 4d7f5eacf00a7cf650b41d27e44de5a01107715a Mon Sep 17 00:00:00 2001 From: Henry Hu Date: Fri, 5 Feb 2016 21:13:53 +0800 Subject: [PATCH] Fixed the bug... --- plugins/inputs/tail/tail.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/inputs/tail/tail.go b/plugins/inputs/tail/tail.go index dc6b265ca..762507747 100644 --- a/plugins/inputs/tail/tail.go +++ b/plugins/inputs/tail/tail.go @@ -3,7 +3,6 @@ package tail import ( "fmt" "log" - "math" "os" "strings" "sync" @@ -11,7 +10,6 @@ import ( "github.com/hpcloud/tail" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/internal/encoding" - "github.com/influxdata/telegraf/internal/encoding/graphite" "github.com/influxdata/telegraf/plugins/inputs" _ "github.com/influxdata/telegraf/internal/encoding/graphite" @@ -138,13 +136,6 @@ func (t *Tail) handleLine(line string) { // Parse it. metric, err := t.encodingParser.ParseLine(line) if err != nil { - switch err := err.(type) { - case *graphite.UnsupposedValueError: - // Graphite ignores NaN values with no error. - if math.IsNaN(err.Value) { - return - } - } t.logger.Printf("unable to parse line: %s: %s", line, err) return }