From ad1a0e08400a6c01b165a2c2a712d2988d98a1a4 Mon Sep 17 00:00:00 2001 From: Kenny Lee Sin Cheong Date: Fri, 2 Jun 2017 17:20:41 -0400 Subject: [PATCH] logger.exception dumps a stack trace by default --- workers/securityworker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workers/securityworker.py b/workers/securityworker.py index a2eeda623..d8b200178 100644 --- a/workers/securityworker.py +++ b/workers/securityworker.py @@ -73,8 +73,8 @@ class SecurityWorker(Worker): except PreemptedException: logger.info('Another worker pre-empted us for layer: %s', candidate.id) abt.set() - except APIRequestFailure as arf: - logger.exception('Security scanner service unavailable: %s', arf) + except APIRequestFailure: + logger.exception('Security scanner service unavailable') return unscanned_images_gauge.Set(num_remaining)