logger.exception dumps a stack trace by default

This commit is contained in:
Kenny Lee Sin Cheong 2017-06-02 17:20:41 -04:00
parent 3302a96f88
commit ad1a0e0840

View file

@ -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)