From 30df40bc043320ff1d287686ca8ae58669bb97e2 Mon Sep 17 00:00:00 2001 From: Joseph Schorr <josephschorr@users.noreply.github.com> Date: Wed, 9 Nov 2016 12:38:26 -0500 Subject: [PATCH] Change incomplete logs to warning so they show up in log entries --- buildman/server.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/buildman/server.py b/buildman/server.py index fea89ea05..2810fa773 100644 --- a/buildman/server.py +++ b/buildman/server.py @@ -143,8 +143,8 @@ class BuilderServer(object): def _job_complete(self, build_job, job_status, executor_name=None, update_phase=False): if job_status == BuildJobResult.INCOMPLETE: - logger.debug('[BUILD INCOMPLETE: job complete] Build ID: %s. No retry restore.', - build_job.repo_build.uuid) + logger.warning('[BUILD INCOMPLETE: job complete] Build ID: %s. No retry restore.', + build_job.repo_build.uuid) self._queue.incomplete(build_job.job_item, restore_retry=False, retry_after=30) else: self._queue.complete(build_job.job_item) @@ -179,8 +179,8 @@ class BuilderServer(object): try: build_job = BuildJob(job_item) except BuildJobLoadException as irbe: - logger.debug('[BUILD INCOMPLETE: job load exception] Jon data: %s. No retry restore.', - job_item.body) + logger.warning('[BUILD INCOMPLETE: job load exception] Jon data: %s. No retry restore.', + job_item.body) logger.exception(irbe) self._queue.incomplete(job_item, restore_retry=False) continue @@ -191,8 +191,8 @@ class BuilderServer(object): try: schedule_success, retry_timeout = yield From(self._lifecycle_manager.schedule(build_job)) except: - logger.debug('[BUILD INCOMPLETE: scheduling] Build ID: %s. Retry restored.', - build_job.repo_build.uuid) + logger.warning('[BUILD INCOMPLETE: scheduling] Build ID: %s. Retry restored.', + build_job.repo_build.uuid) logger.exception('Exception when scheduling job: %s', build_job.repo_build.uuid) self._current_status = BuildServerStatus.EXCEPTION self._queue.incomplete(job_item, restore_retry=True, retry_after=WORK_CHECK_TIMEOUT) @@ -207,8 +207,8 @@ class BuilderServer(object): logger.debug('Build job %s scheduled. Running: %s', build_job.repo_build.uuid, self._job_count) else: - logger.debug('[BUILD INCOMPLETE: no schedule] Build ID: %s. Retry restored.', - build_job.repo_build.uuid) + logger.warning('[BUILD INCOMPLETE: no schedule] Build ID: %s. Retry restored.', + build_job.repo_build.uuid) logger.debug('All workers are busy for job %s Requeuing after %s seconds.', build_job.repo_build.uuid, retry_timeout) self._queue.incomplete(job_item, restore_retry=True, retry_after=retry_timeout)