Reduce wafcache verbosity on cleanup operations

This commit is contained in:
Thomas Nagy 2020-12-15 11:06:05 +01:00
parent 5cddf4b06c
commit abfd2f6c76
1 changed files with 2 additions and 2 deletions

View File

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