mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-07-28 00:04:02 +02:00
Moke info logging less chatty
This commit is contained in:
parent
6bc7576d9e
commit
8308849924
@ -148,7 +148,7 @@ func (es *Eventstream) Run() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
es.icingabeat.client.PublishEvent(BuildEventstreamEvent(line))
|
es.icingabeat.client.PublishEvent(BuildEventstreamEvent(line))
|
||||||
logp.Info("Event sent")
|
logp.Debug("icingabeat.eventstream", "Event sent")
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
@ -18,7 +18,7 @@ func requestURL(bt *Icingabeat, method string, URL *url.URL) (*http.Response, er
|
|||||||
Transport: transport,
|
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)
|
request, err := http.NewRequest(method, URL.String(), nil)
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ func (sp *Statuspoller) Run() error {
|
|||||||
|
|
||||||
processedStatusEvents := BuildStatusEvents(body)
|
processedStatusEvents := BuildStatusEvents(body)
|
||||||
sp.icingabeat.client.PublishEvents(processedStatusEvents)
|
sp.icingabeat.client.PublishEvents(processedStatusEvents)
|
||||||
logp.Info("Events sent: %v", len(processedStatusEvents))
|
logp.Debug("icingabeat.statuspoller", "Events sent: %v", len(processedStatusEvents))
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
logp.Err("Error connecting to API: %v", responseErr)
|
logp.Err("Error connecting to API: %v", responseErr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user