Skip to content

Commit

Permalink
logging for when librato starts and sends
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Aug 21, 2017
1 parent 1574133 commit 9a6a5d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion librato/librato.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func (c *Sender) Start() {
go func() {
c.waitGroup.Add(1)
defer c.waitGroup.Done()

logrus.WithField("comp", "librato").Info("started for username ", c.username)
for {
select {
case <-c.stop:
Expand Down Expand Up @@ -115,7 +117,7 @@ func (c *Sender) flush(count int) {
return
}

logrus.WithField("comp", "librato").WithField("body", string(encoded)).WithField("count", len(reqPayload.Gauges)).Debug("flushed to librato")
logrus.WithField("comp", "librato").WithField("count", len(reqPayload.Gauges)).Info("flushed to librato")
}

// Stop stops our sender, callers can use the WaitGroup used during initialization to block for stop
Expand Down

0 comments on commit 9a6a5d9

Please sign in to comment.