logger.debug("CALLED!")
try:
- logger.debug(f"Acquiring lock: '{lockfile}'")
+ logger.debug("Acquiring lock: lockfile='%s'", lockfile)
LOCK = zc.lockfile.LockFile(lockfile)
logger.debug("Lock obtained.")
except zc.lockfile.LockError:
- logger.error(f"Cannot aquire lock: '{lockfile}'")
+ logger.error("Cannot aquire lock: lockfile='%s'", lockfile)
sys.exit(100)
logger.debug("EXIT!")
if LOCK is not None:
logger.debug("Releasing lock ...")
LOCK.close()
- logger.debug(f"Deleting lockfile='{lockfile}' ...")
+ logger.debug("Deleting lockfile='%s' ...", lockfile)
os.remove(lockfile)
logger.debug("EXIT!")