#8405 add non-retryable debug logging (#8406)

Add debug level logging for metric data that is not retryable.
This commit is contained in:
Aaron Griffin 2020-11-16 07:54:58 -07:00 committed by GitHub
parent 18460e1825
commit 2c346ed08b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ func (w *Wavefront) Write(metrics []telegraf.Metric) error {
return fmt.Errorf("Wavefront sending error: %v", err)
}
w.Log.Errorf("non-retryable error during Wavefront.Write: %v", err)
w.Log.Debugf("Non-retryable metric data: Name: %v, Value: %v, Timestamp: %v, Source: %v, PointTags: %v ", point.Metric, point.Value, point.Timestamp, point.Source, point.Tags)
}
}
}