Fix panic when handling string fields with escapes (#3188)

This commit is contained in:
Daniel Nelson
2017-08-30 21:16:37 -07:00
committed by GitHub
parent 19f3264073
commit 28d16188b3
4 changed files with 56 additions and 19 deletions

View File

@@ -150,12 +150,6 @@ func makemetric(
continue
}
case string:
if strings.HasSuffix(val, `\`) {
log.Printf("D! Measurement [%s] field [%s] has a value "+
"ending with a backslash, skipping", measurement, k)
delete(fields, k)
continue
}
fields[k] = v
default:
fields[k] = v