Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Added additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nwrigh committed Feb 14, 2017
1 parent 94e329c commit b76a213
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ func sendToWriter(ingestionType string, msgBody string, uuid string, elasticWrit
log.Errorf("Cannot create write request: [%v]", err)
}
request.ContentLength = -1

log.Infof("Sending %s with uuid: %s to %s", ingestionType, uuid, elasticWriter)

resp, reqErr := httpClient.Do(request)
if reqErr != nil {
return fmt.Errorf("reqURL=[%s] concept=[%s] uuid=[%s] error=[%v]", reqURL, ingestionType, uuid, reqErr)
Expand Down

0 comments on commit b76a213

Please sign in to comment.