Sort field names when running --test

This commit is contained in:
Daniel Nelson 2018-04-03 16:56:44 -07:00
parent a50acadc44
commit beeab2c509
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ func (r *RunningInput) MakeMetric(
if r.trace && m != nil {
s := influx.NewSerializer()
s.SetFieldSortOrder(influx.SortFields)
octets, err := s.Serialize(m)
if err == nil {
fmt.Print("> " + string(octets))