mirror of
https://github.com/grafana/grafana.git
synced 2025-02-09 23:16:16 -06:00
Chore: Improve some confusing logs (#87185)
improve some confusing logs
This commit is contained in:
parent
0719f73f35
commit
a9ac648cf6
@ -321,7 +321,7 @@ func (c *client) sendBatch(tenantID string, batch *batch) {
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
c.logger.Error("final error sending batch", "status", status, "error")
|
||||
c.logger.Error("final error sending batch", "status", status)
|
||||
c.metrics.droppedBytes.WithLabelValues(c.cfg.URL.Host).Add(bufBytes)
|
||||
c.metrics.droppedEntries.WithLabelValues(c.cfg.URL.Host).Add(float64(entriesCount))
|
||||
}
|
||||
@ -351,7 +351,7 @@ func (c *client) send(ctx context.Context, tenantID string, buf []byte) (int, er
|
||||
defer func() {
|
||||
err := resp.Body.Close()
|
||||
if err != nil {
|
||||
c.logger.Error("closing response body", "error", err)
|
||||
c.logger.Error("failed to close the response body", "error", err)
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user