Skip to content

Commit

Permalink
Remove traces
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerflint committed Sep 26, 2018
1 parent 2d0c407 commit 610d70d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drain/datadog.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func (p *Datadog) Publish(msg logvac.Message) {

// re-establish the connection if it's been closed
if p.conn == nil {
fmt.Println("Establishing connection with datadog endpoint")
p.conn = p.manager.NewConnection() // doesn't block (don't goroutine call to Publish)
}

Expand All @@ -64,7 +63,6 @@ func (p *Datadog) Publish(msg logvac.Message) {
// send the payload
_, err := p.conn.Write(payload)
if err != nil {
fmt.Println("Failed to send payload")
// it's possible the connection is bad, so let's close it
p.manager.CloseConnection(p.conn)
p.conn = nil
Expand Down

0 comments on commit 610d70d

Please sign in to comment.