Remove logging for when trying to obtain lease to backfill repositories

parent aadf99a6
...@@ -37,14 +37,12 @@ class GeoBackfillWorker ...@@ -37,14 +37,12 @@ class GeoBackfillWorker
end end
def try_obtain_lease def try_obtain_lease
logger.info 'Trying to obtain lease to backfill repositories'
uuid = Gitlab::ExclusiveLease.new(lease_key, timeout: LEASE_TIMEOUT).try_obtain uuid = Gitlab::ExclusiveLease.new(lease_key, timeout: LEASE_TIMEOUT).try_obtain
logger.info 'Could not obtain lease to backfill repositories' and return unless uuid return unless uuid
yield yield
logger.info('Releasing lease to backfill repositories')
release_lease(uuid) release_lease(uuid)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment