Move lock aquire log from INFO to DEBUG level (#1737)

closes https://github.com/rq/rq/issues/1717
This commit is contained in:
Ankush Menat 2022-11-29 04:45:15 +05:30 committed by GitHub
parent 5119716911
commit 5f7ed6970d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class RQScheduler:
"""Returns names of queue it successfully acquires lock on"""
successful_locks = set()
pid = os.getpid()
self.log.info("Trying to acquire locks for %s", ", ".join(self._queue_names))
self.log.debug("Trying to acquire locks for %s", ", ".join(self._queue_names))
for name in self._queue_names:
if self.connection.set(self.get_locking_key(name), pid, nx=True, ex=self.interval + 60):
successful_locks.add(name)