Log the APIRequestFailure at ERROR level

This commit is contained in:
Kenny Lee Sin Cheong 2017-06-02 14:40:15 -04:00
parent b5f8e7e24d
commit 3302a96f88

View file

@ -73,7 +73,8 @@ class SecurityWorker(Worker):
except PreemptedException:
logger.info('Another worker pre-empted us for layer: %s', candidate.id)
abt.set()
except APIRequestFailure:
except APIRequestFailure as arf:
logger.exception('Security scanner service unavailable: %s', arf)
return
unscanned_images_gauge.Set(num_remaining)