Skip to content

Commit

Permalink
Try to reconnect to graphite server
Browse files Browse the repository at this point in the history
  • Loading branch information
titilambert committed Jan 12, 2016
1 parent 4f1ee2d commit 772ab4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/outputs/graphite/graphite.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ func (g *Graphite) Write(points []*client.Point) error {
break
}
}

// try to reconnect
if err != nil {
g.Connect()
}
return err
}

Expand Down

0 comments on commit 772ab4b

Please sign in to comment.