]> git.mxchange.org Git - fba.git/blobdiff - fba/helpers/locking.py
Continued:
[fba.git] / fba / helpers / locking.py
index 269b1d4190b09ca7beb9020475d311d5ce54c5ec..0fc18b967bd37fb988c4d8ebaee4c44edd4cf5ee 100644 (file)
@@ -32,12 +32,12 @@ def acquire():
     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!")
@@ -47,7 +47,7 @@ def release():
     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!")