lib/fs: use WARN instead of ERROR log level for the message when NFS diretory removal temporarily fails

this is expected condition, so it is better to use WARN log level for it
This commit is contained in:
Aliaksandr Valialkin 2020-08-09 12:06:57 +03:00
parent d4b6d22987
commit 9d32fb1d9e

View file

@ -82,7 +82,7 @@ func dirRemover() {
if sleepTime < maxSleepTime {
sleepTime *= 2
} else {
logger.Errorf("failed to remove directory %q due to NFS lock; retrying later", w.path)
logger.Warnf("failed to remove directory %q due to NFS lock; retrying later in %.3f seconds", w.path, sleepTime.Seconds())
}
}
}