diff --git a/umu/umu_proton.py b/umu/umu_proton.py index ff5dc2fa7..8959fdea9 100644 --- a/umu/umu_proton.py +++ b/umu/umu_proton.py @@ -328,8 +328,8 @@ def _get_latest( # Use the latest UMU/GE-Proton try: lock = FileLock(f"{UMU_LOCAL}/compatibilitytools.d.lock") + log.debug("Acquiring file lock '%s'...", lock.lock_file) lock.acquire() - log.debug("Acquired lock 'compatibilitytools.d.lock'") if steam_compat.joinpath(proton).is_dir(): raise FileExistsError @@ -365,6 +365,7 @@ def _get_latest( except FileExistsError: pass finally: + log.debug("Released file lock '%s'", lock.lock_file) lock.release() os.environ["PROTONPATH"] = str(steam_compat.joinpath(proton)) diff --git a/umu/umu_runtime.py b/umu/umu_runtime.py index 50b606fcc..ced616581 100644 --- a/umu/umu_runtime.py +++ b/umu/umu_runtime.py @@ -429,8 +429,8 @@ def _restore_umu( lock: FileLock = FileLock(f"{UMU_LOCAL}/umu.lock") try: + log.debug("Acquiring file lock '%s'...", lock.lock_file) lock.acquire() - log.debug("Acquired lock 'umu.lock'") if UMU_LOCAL.joinpath("umu").is_file(): raise FileExistsError @@ -441,4 +441,5 @@ def _restore_umu( except BaseException: raise finally: + log.debug("Released file lock '%s'", lock.lock_file) lock.release()