Moke info logging less chatty

This commit is contained in:
Blerim Sheqa 2017-03-15 15:15:59 +01:00
parent 6bc7576d9e
commit 8308849924
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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)

View File

@ -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)