diff options
Diffstat (limited to 'gitautodeploy/lock.py')
-rw-r--r-- | gitautodeploy/lock.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitautodeploy/lock.py b/gitautodeploy/lock.py index 8bd8b32..b0b408b 100644 --- a/gitautodeploy/lock.py +++ b/gitautodeploy/lock.py @@ -16,7 +16,7 @@ class Lock(): try: os.open(self.path, os.O_CREAT | os.O_EXCL | os.O_WRONLY) self._has_lock = True - logger.info("Successfully obtained lock: %s" % self.path) + logger.debug("Successfully obtained lock: %s" % self.path) except OSError: return False else: @@ -31,7 +31,7 @@ class Lock(): raise Exception("Unable to release lock that is owned by another process") try: os.remove(self.path) - logger.info("Successfully released lock: %s" % self.path) + logger.debug("Successfully released lock: %s" % self.path) finally: self._has_lock = False @@ -48,5 +48,5 @@ class Lock(): except OSError: pass finally: - logger.info("Successfully cleared lock: %s" % self.path) + logger.debug("Successfully cleared lock: %s" % self.path) self._has_lock = False
\ No newline at end of file |