Log the etcd exception so we can debug this issue

This commit is contained in:
Joseph Schorr 2015-06-09 20:33:55 -04:00
parent a933e8bdf4
commit f82831bff6

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)