From fb899c1ebe05fae10169a3b99e14c01041e7b96b Mon Sep 17 00:00:00 2001 From: Clint Armstrong Date: Wed, 2 Sep 2015 13:30:33 -0400 Subject: [PATCH] log when can't get lock --- poller-service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/poller-service.py b/poller-service.py index 9f75d6a94..38eb8c397 100755 --- a/poller-service.py +++ b/poller-service.py @@ -160,6 +160,8 @@ def poll_worker(device_id, action): if getThreadLock('{0}.{1}'.format(action, device_id)): subprocess.check_call(command, shell=True) releaseThreadLock('{0}.{1}'.format(action, device_id)) + else: + log.debug("DEBUG: Couldn't get lock on {0}.{1}".format(action, device_id)) elapsed_time = int(time.time() - start_time) if elapsed_time < 300: log.debug("DEBUG: worker finished %s of device %s in %s seconds" % (action, device_id, elapsed_time))