Merge pull request #1001 from coreos-inc/builderexc
Change to only exception logging internal errors on builds
This commit is contained in:
commit
faacbc5d05
1 changed files with 2 additions and 2 deletions
|
@ -293,8 +293,6 @@ class BuildComponent(BaseComponent):
|
||||||
self._current_job.send_notification('build_success', image_id=kwargs.get('image_id'))
|
self._current_job.send_notification('build_success', image_id=kwargs.get('image_id'))
|
||||||
except ApplicationError as aex:
|
except ApplicationError as aex:
|
||||||
build_id = self._current_job.repo_build.uuid
|
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'))
|
worker_error = WorkerError(aex.error, aex.kwargs.get('base_error'))
|
||||||
|
|
||||||
# Write the error to the log.
|
# Write the error to the log.
|
||||||
|
@ -308,8 +306,10 @@ class BuildComponent(BaseComponent):
|
||||||
|
|
||||||
# Mark the build as completed.
|
# Mark the build as completed.
|
||||||
if worker_error.is_internal_error():
|
if worker_error.is_internal_error():
|
||||||
|
logger.exception('Got remote internal exception for build: %s', build_id)
|
||||||
trollius.async(self._build_finished(BuildJobResult.INCOMPLETE))
|
trollius.async(self._build_finished(BuildJobResult.INCOMPLETE))
|
||||||
else:
|
else:
|
||||||
|
logger.debug('Got remote failure exception for build %s: %s', build_id, aex)
|
||||||
trollius.async(self._build_finished(BuildJobResult.ERROR))
|
trollius.async(self._build_finished(BuildJobResult.ERROR))
|
||||||
|
|
||||||
@trollius.coroutine
|
@trollius.coroutine
|
||||||
|
|
Reference in a new issue