From 9a6a5d95d921457f3760aae206bce891b8579fe4 Mon Sep 17 00:00:00 2001 From: Nic Pottier Date: Mon, 21 Aug 2017 18:31:20 -0500 Subject: [PATCH] logging for when librato starts and sends --- librato/librato.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/librato/librato.go b/librato/librato.go index 139555e90..b5bc5e3dc 100644 --- a/librato/librato.go +++ b/librato/librato.go @@ -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: @@ -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