fix(json_v2): In case of invalid json, log messsage to debug log (#12440)
This commit is contained in:
parent
a736f4ddaa
commit
82ec689630
|
|
@ -80,7 +80,7 @@ func (p *Parser) Parse(input []byte) ([]telegraf.Metric, error) {
|
|||
|
||||
// Only valid JSON is supported
|
||||
if !gjson.Valid(string(input)) {
|
||||
return nil, fmt.Errorf("invalid JSON provided, unable to parse")
|
||||
return nil, fmt.Errorf("invalid JSON provided, unable to parse: %s", string(input))
|
||||
}
|
||||
|
||||
var metrics []telegraf.Metric
|
||||
|
|
|
|||
Loading…
Reference in New Issue