Merge branch 'wafcache_error_parclean' into 'master'

wafcache: fix reporting of concurrent trim error

See merge request ita1024/waf!2312
This commit is contained in:
ita1024 2021-01-11 22:38:13 +00:00
commit 57bdad7822
1 changed files with 2 additions and 2 deletions

View File

@ -400,8 +400,8 @@ def lru_evict():
try:
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
except EnvironmentError:
if Logs.verbose:
Logs.debug('wafcache: another cleaning process is running')
if WAFCACHE_VERBOSITY:
sys.stderr.write('wafcache: another cleaning process is running\n')
else:
# now dow the actual cleanup
lru_trim()