Skip to content

Commit

Permalink
Error response from libhoney does not always mean a non-20x response (#…
Browse files Browse the repository at this point in the history
…210)

* it could be a 200 API response that got an error on parsing the body
  • Loading branch information
vreynolds authored Feb 24, 2021
1 parent 8bf21d3 commit 4b9feb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transmit/transmit.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (d *DefaultTransmission) processResponses(
if r.Err != nil {
log = log.WithField("error", r.Err.Error())
}
log.Logf("non-20x response when sending event")
log.Logf("error when sending event")
if honeycombAPI == apiHost {
// if the API host matches the configured honeycomb API,
// count it as an API error
Expand Down

0 comments on commit 4b9feb1

Please sign in to comment.