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 d4be3efc60
commit fd9f1463df

View file

@ -82,7 +82,7 @@ func dirRemover() {
if sleepTime < maxSleepTime { if sleepTime < maxSleepTime {
sleepTime *= 2 sleepTime *= 2
} else { } 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())
} }
} }
} }