Merge pull request #110 from coreos-inc/etcdex

Log the etcd exception so we can debug this issue
This commit is contained in:
Jimmy Zelinskie 2015-06-09 20:37:23 -04:00
commit a99f29eee4

View file

@ -243,7 +243,7 @@ class EphemeralBuilderManager(BaseManager):
yield From(self._etcd_client.write(job_key, json.dumps(payload), prevExist=False, ttl=ttl))
except (KeyError, etcd.EtcdKeyError):
# The job was already taken by someone else, we are probably a retry
logger.error('Job already exists in etcd, are timeouts misconfigured or is the queue broken?')
logger.exception('Job already exists in etcd, are timeouts misconfigured or is the queue broken?')
raise Return(False)
except etcd.EtcdException:
logger.exception('Exception when writing job %s to etcd', build_uuid)