Change to only exception logging internal errors on builds

Fixes #993
This commit is contained in:
Joseph Schorr 2015-11-30 14:30:55 -05:00
parent eeb4f952dc
commit fbc4927544

View file

@ -293,8 +293,6 @@ class BuildComponent(BaseComponent):
self._current_job.send_notification('build_success', image_id=kwargs.get('image_id'))
except ApplicationError as aex:
build_id = self._current_job.repo_build.uuid
logger.exception('Got remote exception for build: %s', build_id)
worker_error = WorkerError(aex.error, aex.kwargs.get('base_error'))
# Write the error to the log.
@ -308,8 +306,10 @@ class BuildComponent(BaseComponent):
# Mark the build as completed.
if worker_error.is_internal_error():
logger.exception('Got remote internal exception for build: %s', build_id)
trollius.async(self._build_finished(BuildJobResult.INCOMPLETE))
else:
logger.debug('Got remote failure exception for build %s: %s', build_id, aex)
trollius.async(self._build_finished(BuildJobResult.ERROR))
@trollius.coroutine