Standardize the internal error logs for better tracking

This commit is contained in:
Joseph Schorr 2016-10-31 13:45:46 -04:00
parent 0954240ccb
commit 9f9d32548b
2 changed files with 6 additions and 2 deletions

View file

@ -199,7 +199,8 @@ class EphemeralBuilderManager(BaseManager):
got_lock = yield From(self._take_etcd_atomic_lock('job-expired', build_job.build_uuid,
execution_id))
if got_lock:
logger.warning('Marking job %s as incomplete', build_job.build_uuid)
logger.error('[BUILD INTERNAL ERROR: etcd %s] Build ID: %s. Exec name: %s. Exec ID: %s',
etcd_result.action, build_job.build_uuid, executor_name, execution_id)
self.job_complete_callback(build_job, BuildJobResult.INCOMPLETE, executor_name,
update_phase=True)