From 890e1bd82646d9abdb39bc8d286a3d3a47db5cc2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 24 May 2021 15:42:43 +0300 Subject: [PATCH] app/vmagent/remotewrite: use WARN level instead of ERROR level for `couldnt send a block with size ... bytes to ...` log message This is really warning, since vmagent re-tries sending the data block until success. --- app/vmagent/remotewrite/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmagent/remotewrite/client.go b/app/vmagent/remotewrite/client.go index 4a6a78cb91..c1900b0399 100644 --- a/app/vmagent/remotewrite/client.go +++ b/app/vmagent/remotewrite/client.go @@ -265,7 +265,7 @@ again: if retryDuration > time.Minute { retryDuration = time.Minute } - logger.Errorf("couldn't send a block with size %d bytes to %q: %s; re-sending the block in %.3f seconds", + logger.Warnf("couldn't send a block with size %d bytes to %q: %s; re-sending the block in %.3f seconds", len(block), c.sanitizedURL, err, retryDuration.Seconds()) t := timerpool.Get(retryDuration) select {