From 8308849924e6b9dec8669f7e9b35ea737f1649c8 Mon Sep 17 00:00:00 2001 From: Blerim Sheqa Date: Wed, 15 Mar 2017 15:15:59 +0100 Subject: [PATCH] Moke info logging less chatty --- beater/eventstream.go | 2 +- beater/http.go | 2 +- beater/statuspoller.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beater/eventstream.go b/beater/eventstream.go index 2d3110e3..b28b0896 100644 --- a/beater/eventstream.go +++ b/beater/eventstream.go @@ -148,7 +148,7 @@ func (es *Eventstream) Run() error { } es.icingabeat.client.PublishEvent(BuildEventstreamEvent(line)) - logp.Info("Event sent") + logp.Debug("icingabeat.eventstream", "Event sent") } select { diff --git a/beater/http.go b/beater/http.go index e232c136..a8cc7b32 100644 --- a/beater/http.go +++ b/beater/http.go @@ -18,7 +18,7 @@ func requestURL(bt *Icingabeat, method string, URL *url.URL) (*http.Response, er Transport: transport, } - logp.Info("Requested URL: %v", URL.String()) + logp.Debug("icingabeat", "Requested URL: %v", URL.String()) request, err := http.NewRequest(method, URL.String(), nil) diff --git a/beater/statuspoller.go b/beater/statuspoller.go index 0d90b970..cd8c4cc2 100644 --- a/beater/statuspoller.go +++ b/beater/statuspoller.go @@ -121,7 +121,7 @@ func (sp *Statuspoller) Run() error { processedStatusEvents := BuildStatusEvents(body) sp.icingabeat.client.PublishEvents(processedStatusEvents) - logp.Info("Events sent: %v", len(processedStatusEvents)) + logp.Debug("icingabeat.statuspoller", "Events sent: %v", len(processedStatusEvents)) } else { logp.Err("Error connecting to API: %v", responseErr)