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.
This commit is contained in:
Aliaksandr Valialkin 2021-05-24 15:42:43 +03:00
parent 39ef1e7a51
commit 8e7d1f8824

View File

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